{"id":948899,"date":"2024-12-27T00:07:50","date_gmt":"2024-12-26T16:07:50","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/948899.html"},"modified":"2024-12-27T00:07:52","modified_gmt":"2024-12-26T16:07:52","slug":"%e5%a6%82%e4%bd%95%e5%90%af%e5%8a%a8python-gui","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/948899.html","title":{"rendered":"\u5982\u4f55\u542f\u52a8python gui"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084102\/1b27969c-e364-432f-a837-0cd94e51dab3.webp\" alt=\"\u5982\u4f55\u542f\u52a8python gui\" \/><\/p>\n<p><p> <strong>\u542f\u52a8Python GUI\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Tkinter\u5e93\u3001PyQt\u5e93\u3001Kivy\u5e93\u7b49\u3002Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u521d\u5b66\u8005\uff1bPyQt\u529f\u80fd\u5f3a\u5927\uff0c\u652f\u6301\u591a\u5e73\u53f0\u5f00\u53d1\uff0c\u4f46\u5b66\u4e60\u66f2\u7ebf\u8f83\u9661\uff1bKivy\u5219\u9002\u5408\u7528\u4e8e\u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Tkinter\u542f\u52a8Python GUI\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528TKINTER\u521b\u5efa\u7b80\u5355GUI<\/p>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u9002\u5408\u521d\u5b66\u8005\u3002\u8981\u4f7f\u7528Tkinter\u521b\u5efaGUI\u5e94\u7528\uff0c\u9996\u5148\u9700\u8981\u786e\u4fddPython\u73af\u5883\u4e2d\u5df2\u5b89\u88c5Tkinter\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u4e0e\u5bfc\u5165Tkinter<\/strong><\/p>\n<\/p>\n<p><p>Tkinter\u901a\u5e38\u968fPython\u4e00\u8d77\u5b89\u88c5\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get install python3-tk<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165Tkinter\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/p>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3\u662f\u6240\u6709Tkinter\u5e94\u7528\u7684\u57fa\u7840\u3002\u53ef\u4ee5\u901a\u8fc7\u5b9e\u4f8b\u5316<code>Tk<\/code>\u7c7b\u6765\u521b\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">root = tk.Tk()<\/p>\n<p>root.title(&quot;My Tkinter App&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>title<\/code>\u65b9\u6cd5\u7528\u4e8e\u8bbe\u7f6e\u7a97\u53e3\u6807\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6dfb\u52a0\u63a7\u4ef6<\/strong><\/p>\n<\/p>\n<p><p>Tkinter\u63d0\u4f9b\u4e86\u591a\u79cd\u63a7\u4ef6\uff0c\u5982\u6309\u94ae\u3001\u6807\u7b7e\u3001\u6587\u672c\u6846\u7b49\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e9b\u63a7\u4ef6\u6765\u6784\u5efa\u7528\u6237\u754c\u9762\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">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=root.quit)<\/p>\n<p>button.pack()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>pack<\/code>\u65b9\u6cd5\u7528\u4e8e\u5c06\u63a7\u4ef6\u6dfb\u52a0\u5230\u7a97\u53e3\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u5e94\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop<\/code>\u65b9\u6cd5\u542f\u52a8\u4e8b\u4ef6\u5faa\u73af\uff0c\u4f7f\u5e94\u7528\u4fdd\u6301\u8fd0\u884c\u72b6\u6001\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ee3\u7801\u5c06\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u7a97\u53e3\uff0c\u5305\u542b\u4e00\u4e2a\u6807\u7b7e\u548c\u4e00\u4e2a\u6309\u94ae\uff0c\u6309\u94ae\u70b9\u51fb\u540e\u4f1a\u5173\u95ed\u7a97\u53e3\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528PYQT\u521b\u5efaGUI\u5e94\u7528<\/p>\n<\/p>\n<p><p>PyQt\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684GUI\u6846\u67b6\uff0c\u652f\u6301\u8de8\u5e73\u53f0\u5f00\u53d1\uff0c\u4f46\u5b66\u4e60\u66f2\u7ebf\u8f83\u9661\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5PyQt<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528pip\u6765\u5b89\u88c5PyQt\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install PyQt5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u7b80\u5355\u5e94\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528PyQt\u521b\u5efa\u5e94\u7528\u65f6\uff0c\u9700\u8981\u5bfc\u5165<code>sys<\/code>\u6a21\u5757\u548c<code>PyQt5<\/code>\u5e93\u4e2d\u7684\u76f8\u5173\u6a21\u5757\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>from PyQt5.QtWidgets import QApplication, QLabel, QMainWindow<\/p>\n<p>app = QApplication(sys.argv)<\/p>\n<p>window = QMainWindow()<\/p>\n<p>window.setWindowTitle(&quot;My PyQt App&quot;)<\/p>\n<p>label = QLabel(&quot;Hello, PyQt!&quot;, window)<\/p>\n<p>window.setCentralWidget(label)<\/p>\n<p>window.show()<\/p>\n<p>sys.exit(app.exec_())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>QApplication<\/code>\u7c7b\u662fPyQt\u5e94\u7528\u7684\u57fa\u7840\uff0c<code>QMainWindow<\/code>\u7528\u4e8e\u521b\u5efa\u4e3b\u7a97\u53e3\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u8ba1\u590d\u6742\u754c\u9762<\/strong><\/p>\n<\/p>\n<p><p>PyQt\u652f\u6301\u4f7f\u7528Qt Designer\u8fdb\u884c\u754c\u9762\u8bbe\u8ba1\uff0c\u5e76\u901a\u8fc7\u8f6c\u6362\u5de5\u5177\u5c06\u8bbe\u8ba1\u7684\u754c\u9762\u8f6c\u6362\u4e3aPython\u4ee3\u7801\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Qt Designer\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get install qttools5-dev-tools<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528KIVY\u521b\u5efa\u8de8\u5e73\u53f0\u5e94\u7528<\/p>\n<\/p>\n<p><p>Kivy\u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u5f00\u6e90\u5e93\uff0c\u9002\u5408\u79fb\u52a8\u5e94\u7528\u5f00\u53d1\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Kivy<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5Kivy\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install kivy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u7b80\u5355\u5e94\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Kivy\u521b\u5efa\u5e94\u7528\u65f6\uff0c\u9700\u8981\u5bfc\u5165<code>kivy<\/code>\u5e93\u5e76\u7ee7\u627f<code>App<\/code>\u7c7b\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=&#39;Hello, Kivy!&#39;)<\/p>\n<p>if __name__ == &#39;__main__&#39;:<\/p>\n<p>    MyApp().run()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ee3\u7801\u5c06\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Kivy\u5e94\u7528\uff0c\u663e\u793a\u4e00\u4e2a\u6807\u7b7e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u8ba1\u590d\u6742\u754c\u9762<\/strong><\/p>\n<\/p>\n<p><p>Kivy\u652f\u6301\u4f7f\u7528KV\u8bed\u8a00\u8fdb\u884c\u754c\u9762\u8bbe\u8ba1\uff0c\u53ef\u4ee5\u5c06\u754c\u9762\u5e03\u5c40\u4e0ePython\u4ee3\u7801\u5206\u79bb\uff0c\u63d0\u9ad8\u4ee3\u7801\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u9009\u62e9\u9002\u5408\u7684GUI\u5e93<\/p>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684GUI\u5e93\u662f\u5f00\u53d1\u9ad8\u6548\u5e94\u7528\u7684\u5173\u952e\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u9009\u62e9\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521d\u5b66\u8005\u5efa\u8bae\u4f7f\u7528Tkinter<\/strong><\/p>\n<\/p>\n<p><p>Tkinter\u7b80\u5355\u6613\u5b66\uff0c\u9002\u5408\u521d\u5b66\u8005\u5feb\u901f\u4e0a\u624b\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>PyQt\u9002\u5408\u590d\u6742\u5e94\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u5f00\u53d1\u529f\u80fd\u590d\u6742\u7684\u5e94\u7528\uff0cPyQt\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Kivy\u9002\u5408\u8de8\u5e73\u53f0\u5f00\u53d1<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u76ee\u6807\u662f\u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\uff0c\u5c24\u5176\u662f\u79fb\u52a8\u5e94\u7528\uff0cKivy\u662f\u4e00\u4e2a\u7406\u60f3\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u6df1\u5165\u5b66\u4e60\u4e0e\u5b9e\u8df5<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b66\u4e60\u5b98\u65b9\u6587\u6863\u4e0e\u6559\u7a0b<\/strong><\/p>\n<\/p>\n<p><p>\u5b98\u65b9\u6587\u6863\u662f\u5b66\u4e60\u4efb\u4f55\u5e93\u7684\u6700\u4f73\u8d44\u6e90\u3002\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u6587\u6863\u548c\u6559\u7a0b\uff0c\u6df1\u5165\u7406\u89e3\u6bcf\u4e2a\u5e93\u7684\u529f\u80fd\u548c\u7528\u6cd5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b9e\u8df5\u4e0e\u9879\u76ee\u5f00\u53d1<\/strong><\/p>\n<\/p>\n<p><p>\u5b9e\u8df5\u662f\u638c\u63e1GUI\u5f00\u53d1\u6280\u80fd\u7684\u5173\u952e\u3002\u53ef\u4ee5\u901a\u8fc7\u5f00\u53d1\u5c0f\u578b\u9879\u76ee\uff0c\u4e0d\u65ad\u63d0\u5347\u81ea\u5df1\u7684\u80fd\u529b\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u52a0\u5165\u793e\u533a\u4e0e\u4ea4\u6d41<\/strong><\/p>\n<\/p>\n<p><p>\u52a0\u5165\u76f8\u5173\u7684\u5f00\u53d1\u8005\u793e\u533a\uff0c\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u4ea4\u6d41\u7ecf\u9a8c\u4e0e\u95ee\u9898\uff0c\u53ef\u4ee5\u83b7\u5f97\u66f4\u591a\u7684\u5e2e\u52a9\u4e0e\u8d44\u6e90\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u603b\u7ed3<\/strong><\/p>\n<\/p>\n<p><p>\u542f\u52a8Python GUI\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u9009\u62e9\u5408\u9002\u7684\u5e93\u975e\u5e38\u91cd\u8981\u3002Tkinter\u9002\u5408\u521d\u5b66\u8005\uff0cPyQt\u9002\u5408\u5f00\u53d1\u590d\u6742\u5e94\u7528\uff0cKivy\u9002\u5408\u8de8\u5e73\u53f0\u5f00\u53d1\u3002\u5728\u5b66\u4e60\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5efa\u8bae\u901a\u8fc7\u9605\u8bfb\u5b98\u65b9\u6587\u6863\u3001\u5b9e\u8df5\u5f00\u53d1\u9879\u76ee\u548c\u52a0\u5165\u793e\u533a\u4ea4\u6d41\uff0c\u4e0d\u65ad\u63d0\u5347\u81ea\u5df1\u7684\u5f00\u53d1\u80fd\u529b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684Python GUI\u5e93\uff1f<\/strong><br \/>\u5728\u9009\u62e9Python GUI\u5e93\u65f6\uff0c\u53ef\u4ee5\u8003\u8651\u51e0\u4e2a\u5173\u952e\u56e0\u7d20\u3002\u9996\u5148\uff0c\u754c\u9762\u8bbe\u8ba1\u7684\u590d\u6742\u6027\u662f\u4e00\u4e2a\u91cd\u8981\u8003\u91cf\u3002\u5982\u679c\u9879\u76ee\u9700\u8981\u590d\u6742\u7684\u7528\u6237\u4ea4\u4e92\uff0c\u50cfPyQt\u6216Tkinter\u8fd9\u6837\u7684\u5e93\u53ef\u80fd\u66f4\u4e3a\u5408\u9002\u3002\u6b64\u5916\uff0c\u793e\u533a\u652f\u6301\u548c\u6587\u6863\u7684\u4e30\u5bcc\u7a0b\u5ea6\u4e5f\u975e\u5e38\u91cd\u8981\uff0c\u50cfKivy\u548cwxPython\u90fd\u6709\u7740\u6d3b\u8dc3\u7684\u793e\u533a\uff0c\u53ef\u4ee5\u5728\u9047\u5230\u95ee\u9898\u65f6\u83b7\u5f97\u5e2e\u52a9\u3002\u6700\u540e\uff0c\u4e2a\u4eba\u7684\u5b66\u4e60\u66f2\u7ebf\u4e5f\u662f\u4e00\u4e2a\u4e0d\u53ef\u5ffd\u89c6\u7684\u65b9\u9762\uff0c\u67d0\u4e9b\u5e93\u5982Tkinter\u76f8\u5bf9\u7b80\u5355\u6613\u5b66\uff0c\u800c\u5176\u4ed6\u5e93\u53ef\u80fd\u9700\u8981\u66f4\u591a\u7684\u65f6\u95f4\u6765\u638c\u63e1\u3002<\/p>\n<p><strong>\u542f\u52a8Python GUI\u5e94\u7528\u9700\u8981\u54ea\u4e9b\u57fa\u672c\u6b65\u9aa4\uff1f<\/strong><br \/>\u542f\u52a8Python GUI\u5e94\u7528\u7684\u57fa\u672c\u6b65\u9aa4\u901a\u5e38\u5305\u62ec\u5b89\u88c5\u6240\u9700\u7684\u5e93\u3001\u7f16\u5199\u5e94\u7528\u7a0b\u5e8f\u7684\u4ee3\u7801\u548c\u8fd0\u884c\u7a0b\u5e8f\u3002\u9996\u5148\uff0c\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86\u6240\u9700\u7684GUI\u5e93\uff0c\u6bd4\u5982Tkinter\u3001PyQt\u6216Kivy\u3002\u63a5\u4e0b\u6765\uff0c\u7f16\u5199\u5e94\u7528\u7a0b\u5e8f\u7684\u4ee3\u7801\uff0c\u5305\u62ec\u521b\u5efa\u4e3b\u7a97\u53e3\u3001\u6dfb\u52a0\u7ec4\u4ef6\u548c\u5b9a\u4e49\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002\u6700\u540e\uff0c\u901a\u8fc7\u547d\u4ee4\u884c\u6216IDE\u8fd0\u884cPython\u811a\u672c\uff0c\u5373\u53ef\u542f\u52a8GUI\u5e94\u7528\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u8bd5Python GUI\u5e94\u7528\u7a0b\u5e8f\uff1f<\/strong><br \/>\u8c03\u8bd5Python GUI\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fdb\u884c\u3002\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684print\u8bed\u53e5\u6765\u8f93\u51fa\u5173\u952e\u53d8\u91cf\u7684\u503c\uff0c\u5e2e\u52a9\u8ffd\u8e2a\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u4e2d\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u4e5f\u80fd\u66f4\u76f4\u89c2\u5730\u89c2\u5bdf\u7a0b\u5e8f\u72b6\u6001\u3002\u5bf9\u4e8e\u8f83\u590d\u6742\u7684\u5e94\u7528\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u65e5\u5fd7\u8bb0\u5f55\u529f\u80fd\uff0c\u5c06\u91cd\u8981\u4e8b\u4ef6\u548c\u9519\u8bef\u4fe1\u606f\u8bb0\u5f55\u5230\u6587\u4ef6\u4e2d\uff0c\u4ee5\u4fbf\u540e\u7eed\u5206\u6790\u3002\u786e\u4fdd\u4ee3\u7801\u7ed3\u6784\u6e05\u6670\uff0c\u903b\u8f91\u6e05\u695a\uff0c\u4e5f\u80fd\u6709\u6548\u51cf\u5c11\u8c03\u8bd5\u7684\u96be\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u542f\u52a8Python GUI\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Tkinter\u5e93\u3001PyQt\u5e93\u3001Kivy\u5e93\u7b49\u3002Tkint [&hellip;]","protected":false},"author":3,"featured_media":948901,"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\/948899"}],"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=948899"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/948899\/revisions"}],"predecessor-version":[{"id":948902,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/948899\/revisions\/948902"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/948901"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=948899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=948899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=948899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}