{"id":980904,"date":"2024-12-27T06:58:08","date_gmt":"2024-12-26T22:58:08","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/980904.html"},"modified":"2024-12-27T06:58:10","modified_gmt":"2024-12-26T22:58:10","slug":"gui%e5%a6%82%e4%bd%95%e9%a9%b1%e5%8a%a8python%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/980904.html","title":{"rendered":"gui\u5982\u4f55\u9a71\u52a8python\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24210105\/561d5607-2a7c-4d9c-bbeb-de541ad25016.webp\" alt=\"gui\u5982\u4f55\u9a71\u52a8python\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>GUI\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u9a71\u52a8Python\u7a0b\u5e8f\uff0c\u5305\u62ec\u4f7f\u7528\u5e93\u5982Tkinter\u3001PyQt\u3001Kivy\u7b49\u3002<\/strong>\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u56fe\u5f62\u7528\u6237\u754c\u9762\u5de5\u5177\uff0c\u53ef\u4ee5\u4e0ePython\u4ee3\u7801\u65e0\u7f1d\u96c6\u6210\uff0c\u4ece\u800c\u5b9e\u73b0\u4ea4\u4e92\u5f0f\u5e94\u7528\u7a0b\u5e8f\u3002<strong>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93<\/strong>\uff0c\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u6784\u5efa\u57fa\u672c\u7684\u684c\u9762\u5e94\u7528\u3002<strong>PyQt\u548cPySide\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u529f\u80fd<\/strong>\uff0c\u9002\u5408\u6784\u5efa\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u63a5\u4e0b\u6765\uff0c\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5e93\u6765\u9a71\u52a8Python\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001TKINTER<\/p>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u6613\u7528\u7684\u65b9\u5f0f\u6765\u521b\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u548c\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>Tkinter\u901a\u5e38\u4e0d\u9700\u8981\u5355\u72ec\u5b89\u88c5\uff0c\u56e0\u4e3a\u5b83\u662fPython\u7684\u6807\u51c6\u5e93\u4e4b\u4e00\u3002\u4f46\u662f\uff0c\u5982\u679c\u9700\u8981\u66f4\u65b0\u6216\u51fa\u73b0\u7f3a\u5931\uff0c\u53ef\u4ee5\u901a\u8fc7Python\u7684\u5305\u7ba1\u7406\u5668pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install tk<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Tkinter\u7a0b\u5e8f:<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def on_button_click():<\/p>\n<p>    print(&quot;Button clicked!&quot;)<\/p>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;Simple Tkinter App&quot;)<\/p>\n<p>button = tk.Button(root, text=&quot;Click Me&quot;, command=on_button_click)<\/p>\n<p>button.pack()<\/p>\n<p>root.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u5c55\u793a\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u7a97\u53e3\uff0c\u5305\u542b\u4e00\u4e2a\u6309\u94ae\uff0c\u5f53\u6309\u94ae\u88ab\u70b9\u51fb\u65f6\uff0c\u5c06\u5728\u63a7\u5236\u53f0\u8f93\u51fa\u201cButton clicked!\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e03\u5c40\u7ba1\u7406\u548c\u4e8b\u4ef6\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>Tkinter\u63d0\u4f9b\u4e86\u591a\u79cd\u5e03\u5c40\u7ba1\u7406\u5668\uff1apack\u3001grid\u3001place\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u5e03\u5c40\u65b9\u5f0f\u3002\u4e8b\u4ef6\u5904\u7406\u5219\u901a\u8fc7\u7ed1\u5b9a\u4e8b\u4ef6\u5230\u7ec4\u4ef6\u5b9e\u73b0\uff0c\u5982\u9f20\u6807\u70b9\u51fb\u3001\u952e\u76d8\u8f93\u5165\u7b49\u3002<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528<code>pack<\/code>\u5e03\u5c40\u7ba1\u7406\u5668:\n<pre><code class=\"language-python\">label = tk.Label(root, text=&quot;Hello, Tkinter!&quot;)<\/p>\n<p>label.pack(side=tk.TOP)<\/p>\n<p>entry = tk.Entry(root)<\/p>\n<p>entry.pack(side=tk.BOTTOM)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4e8b\u4ef6\u7ed1\u5b9a:\n<pre><code class=\"language-python\">def on_key_press(event):<\/p>\n<p>    print(f&quot;Key pressed: {event.char}&quot;)<\/p>\n<p>root.bind(&quot;&lt;Key&gt;&quot;, on_key_press)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001PYQT\u548cPYSIDE<\/p>\n<\/p>\n<p><p>PyQt\u548cPySide\u662f\u7528\u4e8e\u521b\u5efa\u8de8\u5e73\u53f0\u5e94\u7528\u7a0b\u5e8f\u7684\u5f3a\u5927GUI\u5de5\u5177\u5305\uff0c\u57fa\u4e8eQt\u6846\u67b6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u548c\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>PyQt\u548cPySide\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install PyQt5<\/p>\n<h2><strong>\u6216\u8005<\/strong><\/h2>\n<p>pip install PySide2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684PyQt\u7a0b\u5e8f:<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>from PyQt5.QtWidgets import QApplication, QWidget, QPushButton<\/p>\n<p>def on_button_click():<\/p>\n<p>    print(&quot;Button clicked!&quot;)<\/p>\n<p>app = QApplication(sys.argv)<\/p>\n<p>window = QWidget()<\/p>\n<p>window.setWindowTitle(&quot;Simple PyQt App&quot;)<\/p>\n<p>button = QPushButton(&quot;Click Me&quot;, window)<\/p>\n<p>button.clicked.connect(on_button_click)<\/p>\n<p>button.move(50, 50)<\/p>\n<p>window.setGeometry(100, 100, 200, 150)<\/p>\n<p>window.show()<\/p>\n<p>sys.exit(app.exec_())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u7a0b\u5e8f\u5c55\u793a\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u7a97\u53e3\uff0c\u5305\u542b\u4e00\u4e2a\u6309\u94ae\uff0c\u70b9\u51fb\u6309\u94ae\u540e\u5c06\u5728\u63a7\u5236\u53f0\u8f93\u51fa\u201cButton clicked!\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fe1\u53f7\u4e0e\u69fd\u673a\u5236<\/strong><\/p>\n<\/p>\n<p><p>PyQt\u91c7\u7528\u4fe1\u53f7\u4e0e\u69fd\u673a\u5236\u8fdb\u884c\u4e8b\u4ef6\u5904\u7406\uff0c\u8fd9\u662f\u4e00\u79cd\u677e\u8026\u5408\u7684\u8bbe\u8ba1\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<ul>\n<li>\u4fe1\u53f7\u4e0e\u69fd:\n<pre><code class=\"language-python\">button.clicked.connect(on_button_click)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u5f53\u6309\u94ae\u88ab\u70b9\u51fb\u65f6\uff0c<code>clicked<\/code>\u4fe1\u53f7\u88ab\u53d1\u51fa\uff0c\u5e76\u8fde\u63a5\u5230<code>on_button_click<\/code>\u69fd\u51fd\u6570\u3002<\/li>\n<\/p>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001KIVY<\/p>\n<\/p>\n<p><p>Kivy\u662f\u4e00\u4e2a\u7528\u4e8e\u5feb\u901f\u5f00\u53d1\u591a\u70b9\u89e6\u63a7\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u6e90Python\u5e93\uff0c\u9002\u5408\u4e8e\u684c\u9762\u548c\u79fb\u52a8\u5e94\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u548c\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5Kivy:<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install kivy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Kivy\u7a0b\u5e8f:<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from kivy.app import App<\/p>\n<p>from kivy.uix.button import Button<\/p>\n<p>class MyKivyApp(App):<\/p>\n<p>    def build(self):<\/p>\n<p>        return Button(text=&quot;Hello Kivy&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    MyKivyApp().run()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u7a0b\u5e8f\u521b\u5efa\u4e86\u4e00\u4e2a\u7b80\u5355\u7684Kivy\u5e94\u7528\uff0c\u5305\u542b\u4e00\u4e2a\u6309\u94ae\uff0c\u6309\u94ae\u4e0a\u663e\u793a\u201cHello Kivy\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e03\u5c40\u548c\u4e8b\u4ef6\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>Kivy\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5e03\u5c40\u9009\u9879\uff0c\u5305\u62ecBoxLayout\u3001GridLayout\u3001FloatLayout\u7b49\uff0c\u4ee5\u53ca\u901a\u8fc7\u7ed1\u5b9a\u65b9\u6cd5\u5904\u7406\u4e8b\u4ef6\u3002<\/p>\n<\/p>\n<ul>\n<li>\u5e03\u5c40\u793a\u4f8b:\n<pre><code class=\"language-python\">from kivy.uix.boxlayout import BoxLayout<\/p>\n<p>class MyBoxLayout(BoxLayout):<\/p>\n<p>    pass<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4e8b\u4ef6\u7ed1\u5b9a:\n<pre><code class=\"language-python\">def on_press_button(instance):<\/p>\n<p>    print(&quot;Button pressed&quot;)<\/p>\n<p>button = Button(text=&quot;Press Me&quot;)<\/p>\n<p>button.bind(on_press=on_press_button)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u9009\u62e9\u5408\u9002\u7684GUI\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684GUI\u5de5\u5177\u975e\u5e38\u91cd\u8981\u3002<strong>Tkinter\u9002\u5408\u7b80\u5355\u7684\u684c\u9762\u5e94\u7528<\/strong>\uff0c<strong>PyQt\u9002\u5408\u590d\u6742\u7684\u8de8\u5e73\u53f0\u5e94\u7528<\/strong>\uff0c<strong>Kivy\u5219\u9002\u5408\u9700\u8981\u8de8\u5e73\u53f0\u548c\u591a\u70b9\u89e6\u63a7\u7684\u5e94\u7528<\/strong>\u3002\u5728\u9009\u62e9\u65f6\uff0c\u9700\u8981\u8003\u8651\u5e94\u7528\u7684\u590d\u6742\u6027\u3001\u8de8\u5e73\u53f0\u9700\u6c42\u3001\u5f00\u53d1\u5468\u671f\u4ee5\u53ca\u56e2\u961f\u7684\u6280\u672f\u6808\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u7efc\u5408\u5b9e\u4f8b<\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7efc\u5408\u5b9e\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u901a\u8fc7GUI\u9a71\u52a8\u4e00\u4e2a\u7b80\u5355\u7684Python\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>from PyQt5.QtWidgets import QApplication, QMainWindow, QPushButton, QLabel, QVBoxLayout, QWidget<\/p>\n<p>class MyApp(QMainWindow):<\/p>\n<p>    def __init__(self):<\/p>\n<p>        super().__init__()<\/p>\n<p>        self.initUI()<\/p>\n<p>    def initUI(self):<\/p>\n<p>        self.setWindowTitle(&#39;Comprehensive PyQt App&#39;)<\/p>\n<p>        self.setGeometry(100, 100, 300, 200)<\/p>\n<p>        self.label = QLabel(&#39;Press the button&#39;, self)<\/p>\n<p>        self.button = QPushButton(&#39;Click Me&#39;, self)<\/p>\n<p>        self.button.clicked.connect(self.on_button_click)<\/p>\n<p>        layout = QVBoxLayout()<\/p>\n<p>        layout.addWidget(self.label)<\/p>\n<p>        layout.addWidget(self.button)<\/p>\n<p>        container = QWidget()<\/p>\n<p>        container.setLayout(layout)<\/p>\n<p>        self.setCentralWidget(container)<\/p>\n<p>    def on_button_click(self):<\/p>\n<p>        self.label.setText(&#39;Button clicked!&#39;)<\/p>\n<p>def main():<\/p>\n<p>    app = QApplication(sys.argv)<\/p>\n<p>    ex = MyApp()<\/p>\n<p>    ex.show()<\/p>\n<p>    sys.exit(app.exec_())<\/p>\n<p>if __name__ == &#39;__main__&#39;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u5b9e\u4f8b\u5c55\u793a\u4e86\u4e00\u4e2a\u7b80\u5355\u7684PyQt\u5e94\u7528\u7a0b\u5e8f\uff0c\u5305\u542b\u4e00\u4e2a\u6309\u94ae\u548c\u4e00\u4e2a\u6807\u7b7e\uff0c\u70b9\u51fb\u6309\u94ae\u540e\u6807\u7b7e\u7684\u6587\u672c\u5c06\u6539\u53d8\u4e3a\u201cButton clicked!\u201d\u3002\u901a\u8fc7\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u53ef\u4ee5\u770b\u5230\u5982\u4f55\u4f7f\u7528PyQt\u521b\u5efa\u4e00\u4e2a\u529f\u80fd\u5b8c\u6574\u7684GUI\u5e94\u7528\uff0c\u5e76\u901a\u8fc7\u4fe1\u53f7\u4e0e\u69fd\u673a\u5236\u5b9e\u73b0\u4e8b\u4ef6\u5904\u7406\u3002<\/p>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0c\u4f7f\u7528GUI\u9a71\u52a8Python\u7a0b\u5e8f\u7684\u5173\u952e\u5728\u4e8e\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u548c\u5408\u7406\u7684\u8bbe\u8ba1\u6a21\u5f0f\u3002\u901a\u8fc7\u6df1\u5165\u7406\u89e3Tkinter\u3001PyQt\u548cKivy\u7b49\u5e93\u7684\u529f\u80fd\u548c\u7528\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u4e0e\u56fe\u5f62\u7528\u6237\u754c\u9762\u76f8\u7ed3\u5408\uff0c\u4ece\u800c\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\u548c\u5e94\u7528\u7a0b\u5e8f\u7684\u4ea4\u4e92\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528GUI\u6846\u67b6\u521b\u5efaPython\u7a0b\u5e8f\u7684\u7528\u6237\u754c\u9762\uff1f<\/strong><br \/>\u6709\u591a\u79cdGUI\u6846\u67b6\u53ef\u4ee5\u5e2e\u52a9\u60a8\u4e3aPython\u7a0b\u5e8f\u521b\u5efa\u7528\u6237\u754c\u9762\uff0c\u5305\u62ecTkinter\u3001PyQt\u3001wxPython\u548cKivy\u7b49\u3002Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u9002\u5408\u521d\u5b66\u8005\u4f7f\u7528\uff1b\u800cPyQt\u5219\u63d0\u4f9b\u4e86\u66f4\u4e3a\u590d\u6742\u548c\u7cbe\u7f8e\u7684\u754c\u9762\u8bbe\u8ba1\u529f\u80fd\uff0c\u9002\u5408\u9700\u8981\u5f00\u53d1\u5927\u578b\u5e94\u7528\u7684\u7528\u6237\u3002\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u53d6\u51b3\u4e8e\u9879\u76ee\u7684\u9700\u6c42\u548c\u4e2a\u4eba\u7684\u7f16\u7a0b\u7ecf\u9a8c\u3002<\/p>\n<p><strong>\u4f7f\u7528GUI\u9a71\u52a8Python\u7a0b\u5e8f\u9700\u8981\u54ea\u4e9b\u57fa\u7840\u77e5\u8bc6\uff1f<\/strong><br \/>\u5728\u4f7f\u7528GUI\u9a71\u52a8Python\u7a0b\u5e8f\u4e4b\u524d\uff0c\u4e86\u89e3\u57fa\u672c\u7684Python\u7f16\u7a0b\u77e5\u8bc6\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u3002\u6b64\u5916\uff0c\u719f\u6089\u6240\u9009GUI\u6846\u67b6\u7684\u57fa\u672c\u7528\u6cd5\uff0c\u5982\u7a97\u53e3\u521b\u5efa\u3001\u63a7\u4ef6\u5e03\u5c40\u3001\u4e8b\u4ef6\u5904\u7406\u7b49\uff0c\u4f1a\u4f7f\u5f00\u53d1\u8fc7\u7a0b\u66f4\u52a0\u987a\u5229\u3002\u5efa\u8bae\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u67e5\u9605\u76f8\u5173\u6587\u6863\u548c\u6559\u7a0b\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7406\u89e3\u6846\u67b6\u7684\u5de5\u4f5c\u539f\u7406\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u8bd5\u548c\u6d4b\u8bd5\u4f7f\u7528GUI\u5f00\u53d1\u7684Python\u7a0b\u5e8f\uff1f<\/strong><br \/>\u8c03\u8bd5GUI\u7a0b\u5e8f\u4e0e\u8c03\u8bd5\u666e\u901aPython\u7a0b\u5e8f\u7565\u6709\u4e0d\u540c\u3002\u53ef\u4ee5\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u6216Visual Studio Code\uff0c\u8fd9\u4e9b\u5de5\u5177\u901a\u5e38\u63d0\u4f9b\u56fe\u5f62\u5316\u8c03\u8bd5\u529f\u80fd\uff0c\u65b9\u4fbf\u9010\u6b65\u6267\u884c\u4ee3\u7801\u3002\u540c\u65f6\uff0c\u4f7f\u7528\u65e5\u5fd7\u8bb0\u5f55\u548c\u5f02\u5e38\u5904\u7406\u53ef\u4ee5\u5e2e\u52a9\u6355\u6349\u8fd0\u884c\u65f6\u9519\u8bef\u3002\u4e3a\u4e86\u786e\u4fdd\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\uff0c\u5efa\u8bae\u8fdb\u884c\u5145\u5206\u7684\u7528\u6237\u6d4b\u8bd5\uff0c\u6536\u96c6\u53cd\u9988\u5e76\u8fdb\u884c\u5fc5\u8981\u7684\u8c03\u6574\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"GUI\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u9a71\u52a8Python\u7a0b\u5e8f\uff0c\u5305\u62ec\u4f7f\u7528\u5e93\u5982Tkinter\u3001PyQt\u3001Kivy\u7b49\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u56fe\u5f62 [&hellip;]","protected":false},"author":3,"featured_media":980908,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/980904"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=980904"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/980904\/revisions"}],"predecessor-version":[{"id":980909,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/980904\/revisions\/980909"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/980908"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=980904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=980904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=980904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}