{"id":941705,"date":"2024-12-26T21:41:31","date_gmt":"2024-12-26T13:41:31","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/941705.html"},"modified":"2024-12-26T21:41:33","modified_gmt":"2024-12-26T13:41:33","slug":"python-gui%e5%a6%82%e4%bd%95%e7%94%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/941705.html","title":{"rendered":"python gui\u5982\u4f55\u7528"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25075821\/6dd877b0-b960-4c54-bfb6-40fac2ca4011.webp\" alt=\"python gui\u5982\u4f55\u7528\" \/><\/p>\n<p><p> <strong>Python GUI\u5f00\u53d1\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5e38\u89c1\u7684\u5305\u62ecTkinter\u3001PyQt\u3001Kivy\u3001wxPython\u7b49\u3002\u9009\u62e9\u9002\u5408\u7684\u6846\u67b6\u3001\u638c\u63e1\u57fa\u672c\u63a7\u4ef6\u7684\u4f7f\u7528\u3001\u7406\u89e3\u4e8b\u4ef6\u5904\u7406\u673a\u5236\u3001\u8bbe\u8ba1\u54cd\u5e94\u5f0f\u5e03\u5c40\u662f\u6210\u529f\u5f00\u53d1Python GUI\u5e94\u7528\u7684\u5173\u952e\u3002<\/strong>\u5728\u8fd9\u4e9b\u9009\u9879\u4e2d\uff0cTkinter\u662f\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u9002\u5408\u7b80\u5355\u7684\u684c\u9762\u5e94\u7528\uff1bPyQt\u63d0\u4f9b\u4e86\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u66f4\u597d\u7684\u8de8\u5e73\u53f0\u652f\u6301\uff1bKivy\u9002\u5408\u5f00\u53d1\u591a\u70b9\u89e6\u63a7\u5e94\u7528\uff1bwxPython\u662f\u53e6\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u9009\u9879\uff0c\u5177\u6709\u672c\u5730\u5316\u7684\u5916\u89c2\u548c\u611f\u89c9\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u6846\u67b6\u8fdb\u884cPython GUI\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001TKINTER<\/p>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u9009\u62e9\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u7ec4\u57fa\u672c\u7684\u7a97\u53e3\u5c0f\u90e8\u4ef6\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u7b80\u5355\u7684GUI\u5e94\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u4e0e\u57fa\u672c\u4f7f\u7528<\/strong><\/li>\n<\/ol>\n<p><p>Tkinter\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u3002\u8981\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u7a97\u53e3\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;My First GUI&quot;)<\/p>\n<p>root.geometry(&quot;300x200&quot;)<\/p>\n<p>label = tk.Label(root, text=&quot;Hello, World!&quot;)<\/p>\n<p>label.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>\u8fd9\u6bb5\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2a\u57fa\u672c\u7a97\u53e3\uff0c\u5305\u542b\u4e00\u4e2a\u6807\u7b7e\u3002<code>Tk()<\/code>\u521b\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3\uff0c<code>Label<\/code>\u662f\u4e00\u4e2a\u6587\u672c\u6807\u7b7e\uff0c<code>pack()<\/code>\u65b9\u6cd5\u7528\u4e8e\u5c06\u63a7\u4ef6\u653e\u7f6e\u5230\u7a97\u53e3\u4e2d\uff0c<code>mainloop()<\/code>\u542f\u52a8\u4e8b\u4ef6\u5faa\u73af\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4e8b\u4ef6\u5904\u7406\u4e0e\u5e03\u5c40\u7ba1\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u4e8b\u4ef6\u5904\u7406\u662fGUI\u5e94\u7528\u7684\u6838\u5fc3\u3002Tkinter\u4f7f\u7528\u56de\u8c03\u51fd\u6570\u54cd\u5e94\u4e8b\u4ef6\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7<code>bind<\/code>\u65b9\u6cd5\u5c06\u4e8b\u4ef6\u7ed1\u5b9a\u5230\u63a7\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def on_button_click():<\/p>\n<p>    print(&quot;Button clicked!&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><\/code><\/pre>\n<\/p>\n<p><p>\u5e03\u5c40\u7ba1\u7406\u51b3\u5b9a\u4e86\u63a7\u4ef6\u5728\u7a97\u53e3\u4e2d\u7684\u4f4d\u7f6e\u548c\u5927\u5c0f\u3002Tkinter\u63d0\u4f9b\u4e86\u4e09\u79cd\u5e03\u5c40\u7ba1\u7406\u5668\uff1a<code>pack()<\/code>, <code>grid()<\/code>, \u548c <code>place()<\/code>\u3002<code>pack()<\/code>\u662f\u6700\u7b80\u5355\u7684\uff0c<code>grid()<\/code>\u5141\u8bb8\u4f60\u4f7f\u7528\u884c\u5217\u5e03\u5c40\uff0c<code>place()<\/code>\u63d0\u4f9b\u4e86\u7cbe\u786e\u7684\u4f4d\u7f6e\u63a7\u5236\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001PYQT<\/p>\n<\/p>\n<p><p>PyQt\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684GUI\u5e93\uff0c\u57fa\u4e8eQt\u6846\u67b6\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63a7\u4ef6\u548c\u826f\u597d\u7684\u8de8\u5e73\u53f0\u652f\u6301\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u4e0e\u57fa\u672c\u4f7f\u7528<\/strong><\/li>\n<\/ol>\n<p><p>PyQt\u9700\u8981\u989d\u5916\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install PyQt5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7a97\u53e3\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PyQt5.QtWidgets import QApplication, QLabel, QWidget<\/p>\n<p>app = QApplication([])<\/p>\n<p>window = QWidget()<\/p>\n<p>window.setWindowTitle(&#39;My First PyQt App&#39;)<\/p>\n<p>window.setGeometry(100, 100, 280, 80)<\/p>\n<p>helloMsg = QLabel(&#39;&lt;h1&gt;Hello, World!&lt;\/h1&gt;&#39;, parent=window)<\/p>\n<p>helloMsg.move(60, 15)<\/p>\n<p>window.show()<\/p>\n<p>app.exec_()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2a\u7a97\u53e3\uff0c\u5305\u542b\u4e00\u4e2aHTML\u683c\u5f0f\u7684\u6587\u672c\u6807\u7b7e\u3002<code>QApplication<\/code>\u662f\u5e94\u7528\u7684\u4e3b\u5faa\u73af\uff0c<code>QWidget<\/code>\u662f\u57fa\u672c\u7684\u7a97\u53e3\u90e8\u4ef6\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4fe1\u53f7\u4e0e\u69fd\u673a\u5236<\/strong><\/li>\n<\/ol>\n<p><p>PyQt\u4f7f\u7528\u4fe1\u53f7\u548c\u69fd\u673a\u5236\u5904\u7406\u4e8b\u4ef6\u3002\u4fe1\u53f7\u662f\u63a7\u4ef6\u5728\u7279\u5b9a\u4e8b\u4ef6\u53d1\u751f\u65f6\u53d1\u51fa\u7684\u901a\u77e5\uff0c\u69fd\u662f\u5904\u7406\u4fe1\u53f7\u7684\u51fd\u6570\u3002\u53ef\u4ee5\u901a\u8fc7<code>connect<\/code>\u65b9\u6cd5\u5c06\u4fe1\u53f7\u8fde\u63a5\u5230\u69fd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PyQt5.QtWidgets import QPushButton<\/p>\n<p>def on_button_clicked():<\/p>\n<p>    print(&quot;Button clicked!&quot;)<\/p>\n<p>button = QPushButton(&#39;Click Me&#39;, window)<\/p>\n<p>button.clicked.connect(on_button_clicked)<\/p>\n<p>button.move(100, 50)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u754c\u9762\u8bbe\u8ba1\u4e0e\u5e03\u5c40\u7ba1\u7406<\/strong><\/li>\n<\/ol>\n<p><p>PyQt\u652f\u6301\u4f7f\u7528Qt Designer\u8fdb\u884c\u53ef\u89c6\u5316\u754c\u9762\u8bbe\u8ba1\uff0c\u5e76\u53ef\u4ee5\u4f7f\u7528<code>uic<\/code>\u6a21\u5757\u52a0\u8f7d\u8bbe\u8ba1\u6587\u4ef6\u3002\u5e03\u5c40\u7ba1\u7406\u53ef\u4ee5\u901a\u8fc7<code>QVBoxLayout<\/code>, <code>QHBoxLayout<\/code>, \u548c <code>QGridLayout<\/code>\u7b49\u7c7b\u5b9e\u73b0\uff0c\u63d0\u4f9b\u7075\u6d3b\u7684\u63a7\u4ef6\u6392\u5217\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001KIVY<\/p>\n<\/p>\n<p><p>Kivy\u662f\u4e00\u4e2a\u9002\u7528\u4e8e\u591a\u70b9\u89e6\u63a7\u5e94\u7528\u7684\u5f00\u6e90Python\u5e93\uff0c\u9002\u5408\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\u548c\u5176\u4ed6\u5177\u6709\u9ad8\u7ea7\u4ea4\u4e92\u529f\u80fd\u7684\u5e94\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u4e0e\u57fa\u672c\u4f7f\u7528<\/strong><\/li>\n<\/ol>\n<p><p>Kivy\u4e5f\u9700\u8981\u901a\u8fc7pip\u5b89\u88c5\uff1a<\/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\u5e94\u7528\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from kivy.app import App<\/p>\n<p>from kivy.uix.label import Label<\/p>\n<p>class MyApp(App):<\/p>\n<p>    def build(self):<\/p>\n<p>        return Label(text=&#39;Hello, World!&#39;)<\/p>\n<p>MyApp().run()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2a\u5e94\u7528\uff0c\u663e\u793a\u4e00\u4e2a\u6807\u7b7e\u3002<code>App<\/code>\u7c7b\u662f\u5e94\u7528\u7684\u57fa\u7840\uff0c<code>build<\/code>\u65b9\u6cd5\u8fd4\u56de\u4e3b\u754c\u9762\u7684\u6839\u63a7\u4ef6\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5e03\u5c40\u4e0e\u4e8b\u4ef6<\/strong><\/li>\n<\/ol>\n<p><p>Kivy\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5e03\u5c40\u63a7\u4ef6\uff0c\u5982<code>BoxLayout<\/code>, <code>GridLayout<\/code>, \u548c <code>FloatLayout<\/code>\u3002\u4e8b\u4ef6\u5904\u7406\u53ef\u4ee5\u901a\u8fc7\u89e6\u6478\u4e8b\u4ef6\u548c\u624b\u52bf\u8bc6\u522b\u5b9e\u73b0\uff0c\u9002\u5408\u5f00\u53d1\u4ea4\u4e92\u5f0f\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001WXPYTHON<\/p>\n<\/p>\n<p><p>wxPython\u662f\u53e6\u4e00\u4e2a\u5f3a\u5927\u7684GUI\u5e93\uff0c\u63d0\u4f9b\u672c\u5730\u5316\u7684\u5916\u89c2\u548c\u611f\u89c9\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u4e0e\u57fa\u672c\u4f7f\u7528<\/strong><\/li>\n<\/ol>\n<p><p>wxPython\u9700\u8981\u901a\u8fc7pip\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install wxPython<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7a97\u53e3\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import wx<\/p>\n<p>app = wx.App(False)<\/p>\n<p>frame = wx.Frame(None, wx.ID_ANY, &quot;Hello, World!&quot;)<\/p>\n<p>frame.Show(True)<\/p>\n<p>app.MainLoop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2a\u7a97\u53e3\u3002<code>App<\/code>\u7c7b\u662f\u5e94\u7528\u7684\u57fa\u7840\uff0c<code>Frame<\/code>\u662f\u7a97\u53e3\u7684\u57fa\u672c\u63a7\u4ef6\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4e8b\u4ef6\u5904\u7406\u4e0e\u5e03\u5c40\u7ba1\u7406<\/strong><\/li>\n<\/ol>\n<p><p>wxPython\u4f7f\u7528\u4e8b\u4ef6\u5904\u7406\u5668\u548c\u4e8b\u4ef6\u8868\u5904\u7406\u4e8b\u4ef6\u3002\u5e03\u5c40\u7ba1\u7406\u53ef\u4ee5\u901a\u8fc7<code>BoxSizer<\/code>, <code>GridSizer<\/code>, \u548c<code>FlexGridSizer<\/code>\u7b49\u7c7b\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cdGUI\u5f00\u53d1\u9009\u9879\uff0c\u6bcf\u4e2a\u9009\u9879\u90fd\u6709\u5176\u72ec\u7279\u7684\u7279\u70b9\u548c\u9002\u7528\u573a\u666f\u3002<strong>Tkinter<\/strong>\u9002\u5408\u7b80\u5355\u7684\u684c\u9762\u5e94\u7528\uff0c\u6613\u4e8e\u5b66\u4e60\u548c\u4f7f\u7528\uff1b<strong>PyQt<\/strong>\u529f\u80fd\u5f3a\u5927\uff0c\u9002\u5408\u5f00\u53d1\u590d\u6742\u7684\u684c\u9762\u5e94\u7528\uff1b<strong>Kivy<\/strong>\u9002\u5408\u5f00\u53d1\u5177\u6709\u9ad8\u7ea7\u4ea4\u4e92\u529f\u80fd\u7684\u5e94\u7528\uff0c\u5982\u79fb\u52a8\u5e94\u7528\uff1b<strong>wxPython<\/strong>\u63d0\u4f9b\u672c\u5730\u5316\u7684\u7528\u6237\u754c\u9762\u4f53\u9a8c\u3002\u9009\u62e9\u9002\u5408\u7684\u5de5\u5177\u5e76\u7406\u89e3\u5176\u6838\u5fc3\u6982\u5ff5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u521b\u5efa\u9ad8\u6548\u3001\u73b0\u4ee3\u7684GUI\u5e94\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>Python GUI\u7f16\u7a0b\u9002\u5408\u54ea\u4e9b\u7c7b\u578b\u7684\u5e94\u7528\uff1f<\/strong><br \/>Python GUI\u7f16\u7a0b\u975e\u5e38\u9002\u5408\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3001\u56fe\u5f62\u5316\u5de5\u5177\u548c\u6e38\u620f\u7b49\u3002\u7531\u4e8ePython\u7684\u6613\u7528\u6027\u548c\u4e30\u5bcc\u7684\u5e93\u652f\u6301\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8fc5\u901f\u5b9e\u73b0\u590d\u6742\u7684\u56fe\u5f62\u754c\u9762\uff0c\u4f7f\u5f97\u7528\u6237\u64cd\u4f5c\u66f4\u52a0\u76f4\u89c2\u548c\u53cb\u597d\u3002\u6b64\u5916\uff0cPython GUI\u4e5f\u5e38\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u548c\u79d1\u5b66\u8ba1\u7b97\u5de5\u5177\uff0c\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7406\u89e3\u548c\u5206\u6790\u6570\u636e\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u521b\u5efaGUI\u65f6\uff0c\u6709\u54ea\u4e9b\u5e38\u89c1\u7684\u5e93\u53ef\u4f9b\u9009\u62e9\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5e38\u7528\u7684GUI\u5e93\u5305\u62ecTkinter\u3001PyQt\u3001wxPython\u548cKivy\u3002Tkinter\u662fPython\u81ea\u5e26\u7684\u5e93\uff0c\u9002\u5408\u521d\u5b66\u8005\uff1bPyQt\u529f\u80fd\u5f3a\u5927\uff0c\u9002\u5408\u9700\u8981\u590d\u6742\u754c\u9762\u7684\u5e94\u7528\uff1bwxPython\u63d0\u4f9b\u4e86\u672c\u5730\u5316\u7684\u754c\u9762\u5143\u7d20\uff0c\u9002\u5408\u9700\u8981\u8de8\u5e73\u53f0\u7684\u9879\u76ee\uff1b\u800cKivy\u5219\u4e13\u6ce8\u4e8e\u591a\u70b9\u89e6\u63a7\u548c\u79fb\u52a8\u8bbe\u5907\u5e94\u7528\u7684\u5f00\u53d1\uff0c\u9002\u5408\u9700\u8981\u73b0\u4ee3\u754c\u9762\u7684\u5e94\u7528\u3002<\/p>\n<p><strong>\u5982\u4f55\u5f00\u59cb\u4e00\u4e2aPython GUI\u9879\u76ee\uff1f<\/strong><br \/>\u8981\u5f00\u59cb\u4e00\u4e2aPython GUI\u9879\u76ee\uff0c\u9996\u5148\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u5e93\u5e76\u5b89\u88c5\u76f8\u5173\u7684\u4f9d\u8d56\u3002\u63a5\u4e0b\u6765\uff0c\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u7a97\u53e3\u548c\u57fa\u672c\u7684\u63a7\u4ef6\uff08\u5982\u6309\u94ae\u3001\u6807\u7b7e\u548c\u6587\u672c\u6846\uff09\u6765\u719f\u6089\u5e93\u7684\u4f7f\u7528\u3002\u5efa\u8bae\u53c2\u8003\u4e00\u4e9b\u5728\u7ebf\u6559\u7a0b\u6216\u6587\u6863\uff0c\u4ee5\u4e86\u89e3\u5982\u4f55\u5e03\u5c40\u548c\u4e8b\u4ef6\u5904\u7406\uff0c\u4ece\u800c\u9010\u6b65\u6784\u5efa\u51fa\u590d\u6742\u7684\u754c\u9762\u548c\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python GUI\u5f00\u53d1\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5e38\u89c1\u7684\u5305\u62ecTkinter\u3001PyQt\u3001Kivy\u3001wxPython\u7b49 [&hellip;]","protected":false},"author":3,"featured_media":941710,"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\/941705"}],"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=941705"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/941705\/revisions"}],"predecessor-version":[{"id":941711,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/941705\/revisions\/941711"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/941710"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=941705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=941705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=941705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}