{"id":39126,"date":"2024-11-02T03:37:46","date_gmt":"2024-11-02T03:37:46","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=39126"},"modified":"2024-11-26T06:42:21","modified_gmt":"2024-11-26T06:42:21","slug":"pyqt%ea%b0%9c%eb%b0%9c%ea%b0%95%ec%a2%8c-qlineedit-qtextedit%ec%97%90%ec%84%9c-%ec%9e%90%eb%8f%99%ec%99%84%ec%84%b1-%ec%a0%81%ec%9a%a9","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/39126\/","title":{"rendered":"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9"},"content":{"rendered":"<p><body><\/p>\n<p>Python\uc758 GUI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 <strong>PyQt<\/strong>\ub294 \uac15\ub825\ud55c \ub3c4\uad6c\ub85c, \ub2e4\uc591\ud55c \uc885\ub958\uc758 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc744 \uac1c\ubc1c\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 PyQt\ub97c \uc0ac\uc6a9\ud558\uc5ec <strong>QLineEdit<\/strong> \ubc0f <strong>QTextEdit<\/strong> \uc704\uc82f\uc5d0 \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc744 \uc801\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc740 \ud14d\uc2a4\ud2b8 \uc785\ub825\uc744 \uac04\ud3b8\ud558\uac8c \ud558\uace0 \uc0ac\uc6a9\uc790\uc758 \uacbd\ud5d8\uc744 \ud06c\uac8c \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\ub294 \uc720\uc6a9\ud55c \uae30\ub2a5\uc785\ub2c8\ub2e4.<\/p>\n<h2>1. \uc790\ub3d9\uc644\uc131\uc774\ub780?<\/h2>\n<p>\uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc740 \uc0ac\uc6a9\uc790\uac00 \ud14d\uc2a4\ud2b8 \uc785\ub825\uc744 \uc2dc\uc791\ud560 \ub54c, \uc774\uc804\uc5d0 \uc785\ub825\ud55c \uac12\uc774\ub098 \ubbf8\ub9ac \uc815\uc758\ub41c \ub0b4\uc6a9\uc744 \ubc14\ud0d5\uc73c\ub85c \uac00\ub2a5\ud55c \uc120\ud0dd\uc744 \uc81c\uacf5\ud558\ub294 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc0ac\uc6a9\uc790\ub294 \ub354\uc6b1 \ube60\ub974\uac8c \uc785\ub825\ud560 \uc218 \uc788\uc73c\uba70, \uc624\ud0c0\ub97c \uc904\uc774\ub294 \ub370\ub3c4 \uae30\uc5ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>2. PyQt\uc5d0\uc11c QLineEdit\uc640 QTextEdit<\/h2>\n<p><strong>QLineEdit<\/strong>\ub294 \ud55c \uc904\uc758 \ud14d\uc2a4\ud2b8\ub97c \uc785\ub825\ud558\ub294 \ub370 \uc0ac\uc6a9\ub418\ub294 \uc704\uc82f\uc785\ub2c8\ub2e4. \ubc18\uba74\uc5d0 <strong>QTextEdit<\/strong>\ub294 \uc5ec\ub7ec \uc904\uc758 \ud14d\uc2a4\ud2b8\ub97c \uc785\ub825\ud560 \uc218 \uc788\ub294 \uc704\uc82f\uc73c\ub85c, \ub354 \ubcf5\uc7a1\ud55c \ud14d\uc2a4\ud2b8 \ud3b8\uc9d1 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \ub450 \uc704\uc82f \ubaa8\ub450 \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc744 \uc801\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>3. QLineEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9\ud558\uae30<\/h2>\n<p>QLineEdit\uc5d0 \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc744 \ucd94\uac00\ud558\ub824\uba74, \uba3c\uc800 \uc785\ub825\ub41c \ub0b4\uc6a9\uc744 \uae30\ubc18\uc73c\ub85c \uac00\ub2a5\ud55c \uc790\ub3d9\uc644\uc131 \ud6c4\ubcf4 \ubaa9\ub85d\uc744 \uc124\uc815\ud574\uc57c \ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 QLineEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131\uc744 \uad6c\ud604\ud558\ub294 \uae30\ubcf8\uc801\uc778 \uc608\uc81c\uc785\ub2c8\ub2e4.<\/p>\n<h3>3.1 \uc608\uc81c \ucf54\ub4dc<\/h3>\n<pre><code>\nimport sys\nfrom PyQt5.QtWidgets import QApplication, QLineEdit, QCompleter, QWidget, QVBoxLayout\n\nclass AutoCompleteLineEdit(QWidget):\n    def __init__(self):\n        super().__init__()\n        self.initUI()\n\n    def initUI(self):\n        self.layout = QVBoxLayout()\n\n        # QLineEdit \uc0dd\uc131\n        self.line_edit = QLineEdit(self)\n        self.line_edit.setPlaceholderText(\"\uc790\ub3d9\uc644\uc131 \uc785\ub825\")\n\n        # \uc790\ub3d9\uc644\uc131 \ud6c4\ubcf4 \ubaa9\ub85d\n        words = [\"Python\", \"PyQt\", \"PyTorch\", \"Pandas\", \"NumPy\", \"Matplotlib\"]\n        \n        # QCompleter\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc790\ub3d9\uc644\uc131 \uc0dd\uc131\n        completer = QCompleter(words, self.line_edit)\n        completer.setCaseSensitivity(False)  # \ub300\uc18c\ubb38\uc790 \uad6c\ubd84\ud558\uc9c0 \uc54a\uae30\n        self.line_edit.setCompleter(completer)\n\n        # \ub808\uc774\uc544\uc6c3\uc5d0 QLineEdit \ucd94\uac00\n        self.layout.addWidget(self.line_edit)\n        self.setLayout(self.layout)\n\n        self.setWindowTitle(\"QLineEdit \uc790\ub3d9\uc644\uc131\")\n        self.setGeometry(300, 300, 300, 100)\n\nif __name__ == \"__main__\":\n    app = QApplication(sys.argv)\n    window = AutoCompleteLineEdit()\n    window.show()\n    sys.exit(app.exec_())\n<\/code><\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\ub294 QLineEdit\uc5d0 \uc8fc\uc5b4\uc9c4 \ubaa9\ub85d\uc744 \uae30\ubc18\uc73c\ub85c \uc790\ub3d9\uc644\uc131\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \uae00\uc790\ub97c \uc785\ub825\ud560 \ub54c\ub9c8\ub2e4, QCompleter\ub294 \uc790\ub3d9\uc644\uc131 \ubaa9\ub85d\uc744 \uc5c5\ub370\uc774\ud2b8\ud558\uc5ec \uc77c\uce58\ud558\ub294 \uc81c\uc548\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h2>4. QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uad6c\ud604\ud558\uae30<\/h2>\n<p>QTextEdit\uc5d0\uc11c\ub3c4 \uc790\ub3d9\uc644\uc131\uc744 \uad6c\ud604\ud560 \uc218 \uc788\uc9c0\ub9cc, QLineEdit\uacfc\ub294 \uc870\uae08 \ub2e4\ub974\uac8c \uc791\ub3d9\ud569\ub2c8\ub2e4. QTextEdit\uc740 \uc5ec\ub7ec \uc904\uc758 \ud14d\uc2a4\ud2b8\ub97c \uc9c0\uc6d0\ud558\ubbc0\ub85c, \uc0ac\uc6a9\uc790\uac00 \ud604\uc7ac \ucee4\uc11c \uc704\uce58\uc5d0 \ub530\ub77c \uc790\ub3d9\uc644\uc131\uc744 \uc81c\uacf5\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<h3>4.1 \uc608\uc81c \ucf54\ub4dc<\/h3>\n<pre><code>\nimport sys\nfrom PyQt5.QtWidgets import QApplication, QTextEdit, QCompleter, QWidget, QVBoxLayout\n\nclass AutoCompleteTextEdit(QWidget):\n    def __init__(self):\n        super().__init__()\n        self.initUI()\n\n    def initUI(self):\n        self.layout = QVBoxLayout()\n\n        # QTextEdit \uc0dd\uc131\n        self.text_edit = QTextEdit(self)\n        self.text_edit.setPlaceholderText(\"\uc5ec\uae30\uc5d0 \ud14d\uc2a4\ud2b8\ub97c \uc785\ub825\ud558\uc138\uc694...\")\n\n        # \uc790\ub3d9\uc644\uc131 \ud6c4\ubcf4 \ubaa9\ub85d\n        words = [\"Python\", \"Java\", \"JavaScript\", \"C++\", \"C#\", \"Ruby\", \"Go\"]\n\n        # QCompleter\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc790\ub3d9\uc644\uc131 \uc0dd\uc131\n        self.completer = QCompleter(words, self.text_edit)\n        self.completer.setCaseSensitivity(False)  # \ub300\uc18c\ubb38\uc790 \uad6c\ubd84\ud558\uc9c0 \uc54a\uae30\n        self.text_edit.setCompleter(self.completer)\n\n        # \ub808\uc774\uc544\uc6c3\uc5d0 QTextEdit \ucd94\uac00\n        self.layout.addWidget(self.text_edit)\n        self.setLayout(self.layout)\n\n        self.setWindowTitle(\"QTextEdit \uc790\ub3d9\uc644\uc131\")\n        self.setGeometry(300, 300, 400, 300)\n\n        # \uc790\ub3d9\uc644\uc131 \ud638\ucd9c\uc744 \uc704\ud55c \uc2e0\ud638 \uc5f0\uacb0\n        self.text_edit.textChanged.connect(self.updateCompleter)\n\n    def updateCompleter(self):\n        # \ud14d\uc2a4\ud2b8\ubc15\uc2a4\uc5d0\uc11c \ud604\uc7ac \uc785\ub825 \uc911\uc778 \ub2e8\uc5b4 \uac00\uc838\uc624\uae30\n        cursor = self.text_edit.textCursor()\n        cursor.select(cursor.WordUnderCursor)\n        word = cursor.selectedText()\n\n        if word:\n            self.completer.setCompletionPrefix(word)\n            self.completer.complete()  # \uc790\ub3d9\uc644\uc131 \ubaa9\ub85d \uc5c5\ub370\uc774\ud2b8\n\nif __name__ == \"__main__\":\n    app = QApplication(sys.argv)\n    window = AutoCompleteTextEdit()\n    window.show()\n    sys.exit(app.exec_())\n<\/code><\/pre>\n<p>\uc774 \ucf54\ub4dc\ub294 QTextEdit\uc5d0\uc11c \ucee4\uc11c \uc544\ub798\uc5d0 \uc788\ub294 \ub2e8\uc5b4\ub97c \uae30\ubc18\uc73c\ub85c \uc790\ub3d9\uc644\uc131\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \ud14d\uc2a4\ud2b8\ub97c \uc785\ub825\ud558\uba74, \ud604\uc7ac \ub2e8\uc5b4\uc5d0 \ub300\ud574 \uc790\ub3d9\uc644\uc131 \ubaa9\ub85d\uc744 \uc5c5\ub370\uc774\ud2b8\ud558\uc5ec \ud3b8\ub9ac\ud55c \uc785\ub825\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h2>5. \ub2e4\uc591\ud55c \uc790\ub3d9\uc644\uc131 \ud6c4\ubcf4 \ubaa9\ub85d \uad00\ub9ac\ud558\uae30<\/h2>\n<p>\uc790\ub3d9\uc644\uc131 \ud6c4\ubcf4 \ubaa9\ub85d\uc740 \uace0\uc815\ub41c \ub9ac\uc2a4\ud2b8\uc77c \uc218\ub3c4 \uc788\uc9c0\ub9cc, \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc870\ud68c\ub098 \uc0ac\uc6a9\uc790 \uc785\ub825 \uae30\ubc18\uc73c\ub85c \ub3d9\uc801\uc73c\ub85c \uc0dd\uc131\ub420 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc0ac\uc6a9\uc790 \ub9de\ucda4\ud615 \uacbd\ud5d8\uc744 \uc81c\uacf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>5.1 \uc608\uc81c: \ub3d9\uc801 \ud6c4\ubcf4 \ubaa9\ub85d \uc0dd\uc131<\/h3>\n<pre><code>\nimport sys\nfrom PyQt5.QtWidgets import QApplication, QLineEdit, QCompleter, QWidget, QVBoxLayout\n\nclass DynamicAutoComplete(QWidget):\n    def __init__(self):\n        super().__init__()\n        self.initUI()\n\n    def initUI(self):\n        self.layout = QVBoxLayout()\n\n        self.line_edit = QLineEdit(self)\n        self.line_edit.setPlaceholderText(\"\uc790\ub3d9\uc644\uc131 \uc785\ub825\")\n\n        # \ucd08\uae30 \ub370\uc774\ud130\n        self.words = [\"Python\", \"PyQt\", \"PyTorch\", \"Pandas\", \"NumPy\", \"Matplotlib\"]\n        self.completer = QCompleter(self.words, self.line_edit)\n        self.completer.setCaseSensitivity(False)\n        self.line_edit.setCompleter(self.completer)\n\n        self.layout.addWidget(self.line_edit)\n        self.setLayout(self.layout)\n\n        self.line_edit.textChanged.connect(self.onTextChanged)\n\n        self.setWindowTitle(\"\ub3d9\uc801 \uc790\ub3d9\uc644\uc131\")\n        self.setGeometry(300, 300, 300, 100)\n\n    def onTextChanged(self, text):\n        # \uc785\ub825\uc5d0 \ub530\ub77c \uc790\ub3d9\uc644\uc131 \ud6c4\ubcf4 \ubaa9\ub85d \ubcc0\uacbd\n        new_words = [word for word in self.words if word.lower().startswith(text.lower())]\n        self.completer.model().setStringList(new_words)\n\nif __name__ == \"__main__\":\n    app = QApplication(sys.argv)\n    window = DynamicAutoComplete()\n    window.show()\n    sys.exit(app.exec_())\n<\/code><\/pre>\n<p>\uc774 \uc608\uc81c\uc5d0\uc11c\ub294 \uc0ac\uc6a9\uc790\uac00 \uc785\ub825\ud560 \ub54c\ub9c8\ub2e4 \uc790\ub3d9\uc644\uc131 \ud6c4\ubcf4 \ubaa9\ub85d\uc774 \uac31\uc2e0\ub429\ub2c8\ub2e4. \uc785\ub825\ub41c \ubb38\uc790\uc5f4\ub85c \uc2dc\uc791\ud558\ub294 \ub2e8\uc5b4\ub4e4\ub9cc \ub0a8\uae30\uace0 \ub098\uba38\uc9c0\ub294 \uc81c\uac70\ud558\uc5ec \uc0ac\uc6a9\uc790\uc5d0\uac8c \uac00\uc7a5 \uad00\ub828\uc131\uc774 \ub192\uc740 \uc81c\uc548\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h2>6. \uc785\ub825 \ud615\uc2dd \uac80\uc99d \ubc0f \uc624\ub958 \ucc98\ub9ac<\/h2>\n<p>\uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc744 \uad6c\ud604\ud560 \ub54c, \uc0ac\uc6a9\uc790 \uc785\ub825\uc744 \ucc98\ub9ac\ud558\ub294 \uacfc\uc815\uc5d0\uc11c \uc624\ub958\uac00 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \uc704\ud574 \uc785\ub825 \ud615\uc2dd \uac80\uc99d\uacfc \uc608\uc678 \ucc98\ub9ac\ub97c \uc801\uc808\ud788 \uad6c\ud604\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ud2b9\uc815 \uc870\uac74\uc5d0 \ub9de\uc9c0 \uc54a\ub294 \uc785\ub825\uc5d0 \ub300\ud574\uc11c\ub294 \uc790\ub3d9\uc644\uc131\uc744 \uc81c\uacf5\ud558\uc9c0 \uc54a\uac70\ub098, \uacbd\uace0 \uba54\uc2dc\uc9c0\ub97c \ubcf4\uc5ec\uc904 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>6.1 \uae30\ubcf8 \uac80\uc99d \uc608\uc81c<\/h3>\n<pre><code>\nclass ValidateInput(QWidget):\n    def __init__(self):\n        super().__init__()\n        self.initUI()\n\n    def initUI(self):\n        self.layout = QVBoxLayout()\n        self.line_edit = QLineEdit(self)\n        self.line_edit.setPlaceholderText(\"\uc790\ub3d9\uc644\uc131 \uc785\ub825\")\n\n        self.completer = QCompleter([\"Python\", \"Java\", \"C++\"], self)\n        self.line_edit.setCompleter(self.completer)\n\n        self.layout.addWidget(self.line_edit)\n        self.setLayout(self.layout)\n\n        self.line_edit.textChanged.connect(self.validateInput)\n\n        self.setWindowTitle(\"\uc785\ub825 \uac80\uc99d\")\n        self.setGeometry(300, 300, 300, 100)\n\n    def validateInput(self, text):\n        if not text.isalpha():  # \uc785\ub825\uac12\uc774 \uc54c\ud30c\ubcb3\uc77c \ub54c\ub9cc \ud5c8\uc6a9\n            self.line_edit.setStyleSheet(\"color: red;\")  # \uacbd\uace0 \ud45c\uc2dc\n        else:\n            self.line_edit.setStyleSheet(\"color: black;\")  # \uc815\uc0c1 \uc0c1\ud0dc\n\nif __name__ == \"__main__\":\n    app = QApplication(sys.argv)\n    window = ValidateInput()\n    window.show()\n    sys.exit(app.exec_())\n<\/code><\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c\ub294 \uc785\ub825\uac12\uc774 \uc54c\ud30c\ubcb3\uc778\uc9c0 \uccb4\ud06c\ud558\uba70, \uc54c\ud30c\ubcb3\uc774 \uc544\ub2d0 \uacbd\uc6b0\uc5d0\ub294 \uc785\ub825\ub780\uc758 \uae00\uc790 \uc0c9\uc744 \ube68\uac04\uc0c9\uc73c\ub85c \ubc14\uafb8\uc5b4 \uc0ac\uc6a9\uc790\uac00 \uc8fc\uc758\ud560 \uc218 \uc788\ub3c4\ub85d \ud569\ub2c8\ub2e4.<\/p>\n<h2>7. \ub9c8\ubb34\ub9ac<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 PyQt\uc758 QLineEdit\uacfc QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc740 \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uace0 \uc785\ub825 \ud6a8\uc728\uc131\uc744 \uc99d\ub300\uc2dc\ud0a4\ub294 \ub4f1 \ub9ce\uc740 \uc7a5\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<p>\uc774\ubc88 \uac15\uc88c\ub97c \ud1b5\ud574 \ubc30\uc6b4 \ub0b4\uc6a9\ub4e4\uc744 \ubc14\ud0d5\uc73c\ub85c \ub354\uc6b1 \ubc1c\uc804\ub41c GUI \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4. PyQt\uc5d0 \ub300\ud55c \ub354 \ub9ce\uc740 \ud559\uc2b5\uacfc \uacbd\ud5d8\uc744 \ud1b5\ud574 \ub354 \ub098\uc740 \uac1c\ubc1c\uc790\ub85c \uc131\uc7a5\ud560 \uc218 \uc788\ub294 \uae30\ud68c\uac00 \ub418\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<footer>\n<p>Copyright \u00a9 2023 PyQt \uac15\uc88c. All Rights Reserved.<\/p>\n<\/footer>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\uc758 GUI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 PyQt\ub294 \uac15\ub825\ud55c \ub3c4\uad6c\ub85c, \ub2e4\uc591\ud55c \uc885\ub958\uc758 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc744 \uac1c\ubc1c\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 PyQt\ub97c \uc0ac\uc6a9\ud558\uc5ec QLineEdit \ubc0f QTextEdit \uc704\uc82f\uc5d0 \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc744 \uc801\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc740 \ud14d\uc2a4\ud2b8 \uc785\ub825\uc744 \uac04\ud3b8\ud558\uac8c \ud558\uace0 \uc0ac\uc6a9\uc790\uc758 \uacbd\ud5d8\uc744 \ud06c\uac8c \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\ub294 \uc720\uc6a9\ud55c \uae30\ub2a5\uc785\ub2c8\ub2e4. 1. \uc790\ub3d9\uc644\uc131\uc774\ub780? \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc740 \uc0ac\uc6a9\uc790\uac00 \ud14d\uc2a4\ud2b8 \uc785\ub825\uc744 \uc2dc\uc791\ud560 \ub54c, \uc774\uc804\uc5d0 \uc785\ub825\ud55c \uac12\uc774\ub098 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/39126\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[193],"tags":[],"class_list":["post-39126","post","type-post","status-publish","format-standard","hentry","category-pyqt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/39126\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"Python\uc758 GUI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 PyQt\ub294 \uac15\ub825\ud55c \ub3c4\uad6c\ub85c, \ub2e4\uc591\ud55c \uc885\ub958\uc758 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc744 \uac1c\ubc1c\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 PyQt\ub97c \uc0ac\uc6a9\ud558\uc5ec QLineEdit \ubc0f QTextEdit \uc704\uc82f\uc5d0 \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc744 \uc801\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc740 \ud14d\uc2a4\ud2b8 \uc785\ub825\uc744 \uac04\ud3b8\ud558\uac8c \ud558\uace0 \uc0ac\uc6a9\uc790\uc758 \uacbd\ud5d8\uc744 \ud06c\uac8c \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\ub294 \uc720\uc6a9\ud55c \uae30\ub2a5\uc785\ub2c8\ub2e4. 1. \uc790\ub3d9\uc644\uc131\uc774\ub780? \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc740 \uc0ac\uc6a9\uc790\uac00 \ud14d\uc2a4\ud2b8 \uc785\ub825\uc744 \uc2dc\uc791\ud560 \ub54c, \uc774\uc804\uc5d0 \uc785\ub825\ud55c \uac12\uc774\ub098 &hellip; \ub354 \ubcf4\uae30 &quot;PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/39126\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-02T03:37:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:42:21+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/39126\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/39126\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9\",\"datePublished\":\"2024-11-02T03:37:46+00:00\",\"dateModified\":\"2024-11-26T06:42:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/39126\/\"},\"wordCount\":34,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"PyQt\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/39126\/\",\"url\":\"https:\/\/atmokpo.com\/w\/39126\/\",\"name\":\"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-02T03:37:46+00:00\",\"dateModified\":\"2024-11-26T06:42:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/39126\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/39126\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/39126\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/39126\/","og_locale":"ko_KR","og_type":"article","og_title":"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"Python\uc758 GUI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 PyQt\ub294 \uac15\ub825\ud55c \ub3c4\uad6c\ub85c, \ub2e4\uc591\ud55c \uc885\ub958\uc758 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc744 \uac1c\ubc1c\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 PyQt\ub97c \uc0ac\uc6a9\ud558\uc5ec QLineEdit \ubc0f QTextEdit \uc704\uc82f\uc5d0 \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc744 \uc801\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc740 \ud14d\uc2a4\ud2b8 \uc785\ub825\uc744 \uac04\ud3b8\ud558\uac8c \ud558\uace0 \uc0ac\uc6a9\uc790\uc758 \uacbd\ud5d8\uc744 \ud06c\uac8c \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\ub294 \uc720\uc6a9\ud55c \uae30\ub2a5\uc785\ub2c8\ub2e4. 1. \uc790\ub3d9\uc644\uc131\uc774\ub780? \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc740 \uc0ac\uc6a9\uc790\uac00 \ud14d\uc2a4\ud2b8 \uc785\ub825\uc744 \uc2dc\uc791\ud560 \ub54c, \uc774\uc804\uc5d0 \uc785\ub825\ud55c \uac12\uc774\ub098 &hellip; \ub354 \ubcf4\uae30 \"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9\"","og_url":"https:\/\/atmokpo.com\/w\/39126\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-02T03:37:46+00:00","article_modified_time":"2024-11-26T06:42:21+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/39126\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/39126\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9","datePublished":"2024-11-02T03:37:46+00:00","dateModified":"2024-11-26T06:42:21+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/39126\/"},"wordCount":34,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["PyQt"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/39126\/","url":"https:\/\/atmokpo.com\/w\/39126\/","name":"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-02T03:37:46+00:00","dateModified":"2024-11-26T06:42:21+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/39126\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/39126\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/39126\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"PyQt\uac1c\ubc1c\uac15\uc88c, QLineEdit, QTextEdit\uc5d0\uc11c \uc790\ub3d9\uc644\uc131 \uc801\uc6a9"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/39126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=39126"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/39126\/revisions"}],"predecessor-version":[{"id":39127,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/39126\/revisions\/39127"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=39126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=39126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=39126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}