{"id":956569,"date":"2024-12-27T02:37:27","date_gmt":"2024-12-26T18:37:27","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/956569.html"},"modified":"2024-12-27T02:37:29","modified_gmt":"2024-12-26T18:37:29","slug":"python%e5%a6%82%e4%bd%95%e5%bc%80%e5%8f%91ui%e7%95%8c%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/956569.html","title":{"rendered":"python\u5982\u4f55\u5f00\u53d1ui\u754c\u9762"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100128\/f3873417-5641-4052-b3d7-ece34bedc242.webp\" alt=\"python\u5982\u4f55\u5f00\u53d1ui\u754c\u9762\" \/><\/p>\n<p><p> <strong>Python\u5f00\u53d1UI\u754c\u9762\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\u4f7f\u7528Tkinter\u3001PyQt\u3001Kivy\u7b49\u5de5\u5177\uff0c\u8fd9\u4e9b\u5de5\u5177\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63a7\u4ef6\u548c\u529f\u80fd\uff0c\u80fd\u591f\u5e2e\u52a9\u5f00\u53d1\u8005\u521b\u5efa\u7528\u6237\u53cb\u597d\u7684\u754c\u9762\u3002<\/strong> \u5728\u8fd9\u4e9b\u5de5\u5177\u4e2d\uff0cTkinter\u662fPython\u5185\u7f6e\u7684\u6807\u51c6\u5e93\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\uff1bPyQt\u5219\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u548c\u66f4\u4e30\u5bcc\u7684\u63a7\u4ef6\uff1bKivy\u5219\u4e13\u6ce8\u4e8e\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u5f00\u53d1\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u8ba8\u8bba\u8fd9\u4e9b\u5de5\u5177\uff0c\u5e76\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528\u5b83\u4eec\u8fdb\u884cPython UI\u754c\u9762\u7684\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001TKINTER<\/p>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u5b83\u662fPython\u81ea\u5e26\u7684\uff0c\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\uff0c\u9002\u5408\u521d\u5b66\u8005\u4f7f\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Tkinter\u7684\u57fa\u672c\u7ed3\u6784<\/strong><\/p>\n<\/p>\n<p><p>Tkinter\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u7ed3\u6784\u901a\u5e38\u5305\u62ec\u521b\u5efa\u4e3b\u7a97\u53e3\u3001\u6dfb\u52a0\u63a7\u4ef6\u3001\u5b9a\u4e49\u4e8b\u4ef6\u5904\u7406\u5668\u7b49\u6b65\u9aa4\u3002\u9996\u5148\uff0c\u9700\u8981\u5bfc\u5165Tkinter\u6a21\u5757\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3\uff08root\uff09\uff0c\u5728\u4e3b\u7a97\u53e3\u4e2d\u6dfb\u52a0\u63a7\u4ef6\uff08\u5982\u6309\u94ae\u3001\u6807\u7b7e\u3001\u6587\u672c\u6846\u7b49\uff09\uff0c\u6700\u540e\u901a\u8fc7\u8c03\u7528m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()\u65b9\u6cd5\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u7684\u4e8b\u4ef6\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def main():<\/p>\n<p>    root = tk.Tk()<\/p>\n<p>    root.title(&quot;Tkinter Example&quot;)<\/p>\n<p>    label = tk.Label(root, text=&quot;Hello, Tkinter!&quot;)<\/p>\n<p>    label.pack()<\/p>\n<p>    button = tk.Button(root, text=&quot;Click Me&quot;, command=lambda: print(&quot;Button clicked&quot;))<\/p>\n<p>    button.pack()<\/p>\n<p>    root.mainloop()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u63a7\u4ef6\u5e03\u5c40<\/strong><\/p>\n<\/p>\n<p><p>Tkinter\u63d0\u4f9b\u4e86\u4e09\u79cd\u5e03\u5c40\u7ba1\u7406\u5668\uff1apack\u3001grid\u548cplace\u3002pack()\u65b9\u6cd5\u6309\u987a\u5e8f\u6392\u5217\u63a7\u4ef6\uff0cgrid()\u65b9\u6cd5\u6309\u884c\u5217\u6392\u5217\u63a7\u4ef6\uff0cplace()\u65b9\u6cd5\u5141\u8bb8\u5f00\u53d1\u8005\u901a\u8fc7\u5750\u6807\u7cbe\u786e\u653e\u7f6e\u63a7\u4ef6\u3002\u9009\u62e9\u5408\u9002\u7684\u5e03\u5c40\u7ba1\u7406\u5668\u53ef\u4ee5\u5e2e\u52a9\u521b\u5efa\u6574\u6d01\u7684\u754c\u9762\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e8b\u4ef6\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>Tkinter\u4f7f\u7528\u4e8b\u4ef6\u9a71\u52a8\u7f16\u7a0b\u6a21\u578b\uff0c\u5f00\u53d1\u8005\u9700\u8981\u5b9a\u4e49\u4e8b\u4ef6\u5904\u7406\u5668\u6765\u54cd\u5e94\u7528\u6237\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u6309\u4e0b\u6309\u94ae\u65f6\uff0c\u53ef\u4ee5\u8c03\u7528\u7279\u5b9a\u7684\u51fd\u6570\u6765\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002\u4e8b\u4ef6\u5904\u7406\u5668\u901a\u8fc7command\u5c5e\u6027\u4e0e\u63a7\u4ef6\u7ed1\u5b9a\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001PYQT<\/p>\n<\/p>\n<p><p>PyQt\u662f\u4e00\u4e2a\u5f3a\u5927\u7684Python GUI\u5de5\u5177\u5305\uff0c\u57fa\u4e8eQt\u6846\u67b6\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63a7\u4ef6\u548c\u5f3a\u5927\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u4e0e\u57fa\u672c\u4f7f\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528PyQt\u4e4b\u524d\uff0c\u9700\u8981\u5b89\u88c5PyQt\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code>pip install PyQt5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684PyQt\u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u5bfc\u5165PyQt\u6a21\u5757\u3001\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u5bf9\u8c61\u3001\u521b\u5efa\u4e3b\u7a97\u53e3\u3001\u8bbe\u7f6e\u63a7\u4ef6\u5e76\u663e\u793a\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PyQt5.QtWidgets import QApplication, QLabel, QMainWindow<\/p>\n<p>def main():<\/p>\n<p>    app = QApplication([])<\/p>\n<p>    window = QMainWindow()<\/p>\n<p>    window.setWindowTitle(&quot;PyQt Example&quot;)<\/p>\n<p>    label = QLabel(&quot;Hello, PyQt!&quot;, parent=window)<\/p>\n<p>    window.setCentralWidget(label)<\/p>\n<p>    window.show()<\/p>\n<p>    app.exec_()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fe1\u53f7\u4e0e\u69fd\u673a\u5236<\/strong><\/p>\n<\/p>\n<p><p>PyQt\u4f7f\u7528\u4fe1\u53f7\u4e0e\u69fd\u673a\u5236\u5904\u7406\u4e8b\u4ef6\u3002\u5f53\u7528\u6237\u4e0e\u63a7\u4ef6\u4ea4\u4e92\u65f6\uff0c\u63a7\u4ef6\u4f1a\u53d1\u51fa\u4fe1\u53f7\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5c06\u8fd9\u4e9b\u4fe1\u53f7\u8fde\u63a5\u5230\u69fd\u51fd\u6570\uff0c\u4ee5\u6267\u884c\u7279\u5b9a\u7684\u64cd\u4f5c\u3002\u4fe1\u53f7\u4e0e\u69fd\u673a\u5236\u63d0\u4f9b\u4e86\u4e00\u79cd\u677e\u8026\u5408\u7684\u65b9\u5f0f\u6765\u5904\u7406\u4e8b\u4ef6\u54cd\u5e94\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u754c\u9762\u8bbe\u8ba1\u4e0e\u5e03\u5c40<\/strong><\/p>\n<\/p>\n<p><p>PyQt\u652f\u6301\u4f7f\u7528Qt Designer\u5de5\u5177\u8fdb\u884c\u53ef\u89c6\u5316\u754c\u9762\u8bbe\u8ba1\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u62d6\u653e\u63a7\u4ef6\u6765\u8bbe\u8ba1\u754c\u9762\u5e03\u5c40\u3002\u8bbe\u8ba1\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5c06.ui\u6587\u4ef6\u8f6c\u6362\u4e3aPython\u4ee3\u7801\u6216\u76f4\u63a5\u52a0\u8f7d\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001KIVY<\/p>\n<\/p>\n<p><p>Kivy\u662f\u4e00\u4e2a\u5f00\u6e90\u7684Python\u5e93\uff0c\u4e13\u6ce8\u4e8e\u591a\u70b9\u89e6\u63a7\u5e94\u7528\u548c\u8de8\u5e73\u53f0\u5f00\u53d1\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u4e0e\u5feb\u901f\u5165\u95e8<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u5b89\u88c5Kivy\uff1a<\/p>\n<\/p>\n<p><pre><code>pip install kivy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Kivy\u5e94\u7528\u7a0b\u5e8f\u7684\u7ed3\u6784\u901a\u5e38\u5305\u62ec\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u7c7b\u3001\u5b9a\u4e49\u754c\u9762\u5e03\u5c40\u548c\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002<\/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=&quot;Hello, Kivy!&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    MyApp().run()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>Kivy\u7684\u5e03\u5c40\u4e0e\u63a7\u4ef6<\/strong><\/p>\n<\/p>\n<p><p>Kivy\u63d0\u4f9b\u4e86\u591a\u79cd\u5e03\u5c40\u7c7b\uff0c\u5982BoxLayout\u3001GridLayout\u7b49\uff0c\u7528\u4e8e\u5b89\u6392\u63a7\u4ef6\u7684\u4f4d\u7f6e\u3002\u63a7\u4ef6\u5305\u62ecLabel\u3001Button\u3001TextInput\u7b49\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u63a7\u4ef6\u548c\u5e03\u5c40\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8de8\u5e73\u53f0\u652f\u6301<\/strong><\/p>\n<\/p>\n<p><p>Kivy\u7684\u4e00\u4e2a\u663e\u8457\u4f18\u70b9\u662f\u5176\u8de8\u5e73\u53f0\u652f\u6301\uff0c\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5728Windows\u3001macOS\u3001Linux\u3001Android\u548ciOS\u4e0a\u8fd0\u884c\u3002Kivy\u91c7\u7528OpenGL ES\u52a0\u901f\uff0c\u9002\u5408\u5f00\u53d1\u56fe\u5f62\u5bc6\u96c6\u578b\u5e94\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u6bd4\u8f83\u4e0e\u9009\u62e9<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177<\/strong><\/p>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684Python UI\u5f00\u53d1\u5de5\u5177\u9700\u8981\u8003\u8651\u591a\u4e2a\u56e0\u7d20\uff0c\u5982\u9879\u76ee\u9700\u6c42\u3001\u5f00\u53d1\u8005\u7684\u7ecf\u9a8c\u3001\u5e94\u7528\u7a0b\u5e8f\u7684\u590d\u6742\u6027\u7b49\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u684c\u9762\u5e94\u7528\uff0cTkinter\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\uff1b\u5bf9\u4e8e\u9700\u8981\u66f4\u591a\u63a7\u4ef6\u548c\u529f\u80fd\u7684\u5e94\u7528\uff0cPyQt\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff1b\u5bf9\u4e8e\u8de8\u5e73\u53f0\u548c\u89e6\u63a7\u5e94\u7528\uff0cKivy\u662f\u6700\u4f73\u9009\u62e9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b66\u4e60\u8d44\u6e90\u4e0e\u793e\u533a\u652f\u6301<\/strong><\/p>\n<\/p>\n<p><p>\u5404\u79cd\u5de5\u5177\u90fd\u6709\u4e30\u5bcc\u7684\u5b66\u4e60\u8d44\u6e90\u548c\u793e\u533a\u652f\u6301\u3002Tkinter\u6709\u5927\u91cf\u7684\u5728\u7ebf\u6559\u7a0b\u548c\u6587\u6863\uff1bPyQt\u6709\u5b98\u65b9\u6587\u6863\u548c\u6d3b\u8dc3\u7684\u793e\u533a\uff1bKivy\u6709\u8be6\u7ec6\u7684\u7528\u6237\u6307\u5357\u548c\u793a\u4f8b\u9879\u76ee\u3002\u901a\u8fc7\u5b66\u4e60\u8fd9\u4e9b\u8d44\u6e90\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u597d\u5730\u638c\u63e1\u5de5\u5177\u7684\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5de5\u5177\u7528\u4e8e\u5f00\u53d1UI\u754c\u9762\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u3002<strong>\u4f7f\u7528Tkinter\u3001PyQt\u548cKivy\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u521b\u5efa\u529f\u80fd\u5f3a\u5927\u3001\u7528\u6237\u53cb\u597d\u7684\u5e94\u7528\u7a0b\u5e8f\u754c\u9762<\/strong>\u3002\u901a\u8fc7\u4e0d\u65ad\u5b66\u4e60\u548c\u5b9e\u8df5\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u638c\u63e1\u8fd9\u4e9b\u5de5\u5177\u7684\u4f7f\u7528\uff0c\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u6548\u7387\u548c\u8d28\u91cf\u3002\u65e0\u8bba\u662f\u521d\u5b66\u8005\u8fd8\u662f\u7ecf\u9a8c\u4e30\u5bcc\u7684\u5f00\u53d1\u8005\uff0c\u90fd\u53ef\u4ee5\u4ecePython\u7684GUI\u5f00\u53d1\u4e2d\u53d7\u76ca\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684Python UI\u6846\u67b6\uff1f<\/strong><br \/>\u5728\u5f00\u53d1Python UI\u754c\u9762\u65f6\uff0c\u6709\u591a\u79cd\u6846\u67b6\u53ef\u4f9b\u9009\u62e9\uff0c\u5982Tkinter\u3001PyQt\u3001wxPython\u7b49\u3002\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u5e94\u8003\u8651\u9879\u76ee\u9700\u6c42\u3001\u5b66\u4e60\u66f2\u7ebf\u4ee5\u53ca\u793e\u533a\u652f\u6301\u3002\u4f8b\u5982\uff0cTkinter\u662f\u5185\u7f6e\u7684\uff0c\u9002\u5408\u7b80\u5355\u9879\u76ee\uff0c\u800cPyQt\u529f\u80fd\u5f3a\u5927\uff0c\u9002\u5408\u590d\u6742\u5e94\u7528\u3002\u8bc4\u4f30\u6bcf\u4e2a\u6846\u67b6\u7684\u4f18\u7f3a\u70b9\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u505a\u51fa\u660e\u667a\u7684\u9009\u62e9\u3002<\/p>\n<p><strong>Python UI\u5f00\u53d1\u9700\u8981\u638c\u63e1\u54ea\u4e9b\u57fa\u672c\u77e5\u8bc6\uff1f<\/strong><br \/>\u8fdb\u884cPython UI\u5f00\u53d1\u65f6\uff0c\u9700\u8981\u638c\u63e1\u57fa\u7840\u7684Python\u7f16\u7a0b\u77e5\u8bc6\uff0c\u5305\u62ec\u6570\u636e\u7ed3\u6784\u3001\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u7b49\u3002\u6b64\u5916\uff0c\u4e86\u89e3\u4e8b\u4ef6\u9a71\u52a8\u7f16\u7a0b\u7684\u6982\u5ff5\u4e5f\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u4e3aUI\u754c\u9762\u901a\u5e38\u4f9d\u8d56\u4e8e\u7528\u6237\u8f93\u5165\u548c\u4e8b\u4ef6\u54cd\u5e94\u3002\u719f\u6089\u6240\u9009\u6846\u67b6\u7684\u6587\u6863\u548c\u6559\u7a0b\uff0c\u4e5f\u80fd\u5e2e\u52a9\u4f60\u5feb\u901f\u4e0a\u624b\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u54cd\u5e94\u5f0fUI\u8bbe\u8ba1\uff1f<\/strong><br \/>\u5b9e\u73b0\u54cd\u5e94\u5f0fUI\u8bbe\u8ba1\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5e03\u5c40\u7ba1\u7406\u5668\u6765\u4f18\u5316\u754c\u9762\uff0c\u786e\u4fdd\u5b83\u5728\u4e0d\u540c\u5c4f\u5e55\u5c3a\u5bf8\u548c\u5206\u8fa8\u7387\u4e0a\u90fd\u80fd\u6b63\u5e38\u663e\u793a\u3002\u4f8b\u5982\uff0c\u4f7f\u7528Tkinter\u7684<code>pack()<\/code>\u6216<code>grid()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7075\u6d3b\u8c03\u6574\u7ec4\u4ef6\u7684\u4f4d\u7f6e\u548c\u5927\u5c0f\u3002\u6b64\u5916\uff0c\u501f\u52a9CSS\u548cHTML\u7684\u7ec4\u5408\uff0c\u5728\u4f7f\u7528Flask\u6216Django\u7b49Web\u6846\u67b6\u65f6\u4e5f\u80fd\u521b\u5efa\u54cd\u5e94\u5f0fWeb\u5e94\u7528\u3002\u4e86\u89e3\u4e0d\u540c\u5e03\u5c40\u65b9\u6cd5\u7684\u4f7f\u7528\uff0c\u53ef\u4ee5\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5f00\u53d1UI\u754c\u9762\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\u4f7f\u7528Tkinter\u3001PyQt\u3001Kivy\u7b49\u5de5\u5177\uff0c\u8fd9\u4e9b\u5de5\u5177\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63a7\u4ef6\u548c [&hellip;]","protected":false},"author":3,"featured_media":956570,"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\/956569"}],"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=956569"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/956569\/revisions"}],"predecessor-version":[{"id":956571,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/956569\/revisions\/956571"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/956570"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=956569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=956569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=956569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}