{"id":39217,"date":"2023-12-20T15:44:02","date_gmt":"2023-12-20T07:44:02","guid":{"rendered":"https:\/\/www.yimenapp.com\/kb-yimen\/?p=39217"},"modified":"2023-12-20T15:44:02","modified_gmt":"2023-12-20T07:44:02","slug":"tkinterdesigner%e6%89%93%e5%8c%85exe%e6%96%b9%e6%b3%95%e6%ad%a5%e9%aa%a4%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.yimenapp.com\/kb-yimen\/39217\/","title":{"rendered":"tkinterdesigner\u6253\u5305exe\u65b9\u6cd5\u6b65\u9aa4\u4ecb\u7ecd"},"content":{"rendered":"<p>Tkinter Designer\u662f\u4e00\u4e2a\u53ef\u89c6\u5316\u7684Tkinter GUI\u8bbe\u8ba1\u5668\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u62d6\u653e\u64cd\u4f5c\u6765\u521b\u5efaGUI<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/\" title=\"\u5e94\u7528\u7a0b\u5e8f\" target=\"_blank\">\u5e94\u7528\u7a0b\u5e8f<\/a><\/span>\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u521b\u5efaGUI\u754c\u9762\uff0c\u800c\u4e0d\u5fc5\u624b\u52a8\u7f16\u5199<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e4%bb%a3%e7%a0%81\/\" title=\"\u4ee3\u7801\" target=\"_blank\">\u4ee3\u7801<\/a><\/span>\u3002\u5728Tkinter Designer\u4e2d\u521b\u5efa\u7684GUI\u754c\u9762\u53ef\u4ee5\u76f4\u63a5<a href=\"https:\/\/exe.yimenapp.com\/tool-85.html\">\u8f6f\u4ef6\u6253\u5305<\/a>\u5bfc\u51fa\u4e3aPython\u4ee3\u7801\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528PyInstaller\u5c06\u5176\u6253\u5305\u6210<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e5%8f%af%e6%89%a7%e8%a1%8c%e6%96%87%e4%bb%b6\/\" title=\"\u53ef\u6267\u884c\u6587\u4ef6\" target=\"_blank\">\u53ef\u6267\u884c\u6587\u4ef6<\/a><\/span>\u3002<\/p>\n<p>PyInstaller\u662f\u4e00\u4e2a\u7528\u4e8e\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u5c06Python\u89e3\u91ca\u5668\u3001\u4f9d\u8d56\u5e93\u548c\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7801\u6253\u5305\u6210\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4f7f\u5f97\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u3002PyInstaller\u652f\u6301Windows\u3001Linux\u548cMac OS X\u7b49\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<p>\u6253\u5305Tkinter Designer\u751f\u6210\u7684Python\u4ee3\u7801\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u9700\u8981\u4f7f\u7528PyInstaller\u8fdb\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<p>1. \u5b89\u88c5PyInstaller<\/p>\n<p>\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5PyInstaller\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>pip install pyinstaller<\/p>\n<p>&#8220;`<\/p>\n<p>2<a href=\"https:\/\/exe.yimenapp.com\/tool-3321.html\">exe\u64ad\u653e\u5668<\/a>. \u6253\u5305Python\u4ee3\u7801<\/p>\n<p>\u5728Tkinter Designer\u4e2d\u521b\u5efaGUI\u754c\u9762\u540e\uff0c\u53ef\u4ee5\u5bfc\u51fa\u4e3aPython\u4ee3\u7801\u3002\u5c06\u5bfc\u51fa\u7684Python\u4ee3\u7801\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u6587\u4ef6\uff0c\u4f8b\u5982my<span class=\"wpcom_keyword_link\"><a href=\"https:\/\/www.yimenapp.com\" target=\"_blank\" title=\"\u5f00\u53d1app\u4ece\u4e00\u95e8\u5f00\u59cb\">app<\/a><\/span>.py\u3002<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8fdb\u5165myapp.py\u6240\u5728\u7684\u76ee\u5f55\uff0c\u7136\u540e\u6267\u884c<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-03\/22\/18\/18194509386.jpg\" \/><\/figure><\/p>\n<p>\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>pyinstaller myapp.py<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u5c06myapp.py\u53ca\u5176\u4f9d\u8d56\u5e93\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u751f\u6210\u5728dist\u76ee\u5f55\u4e0b\u3002<\/p>\n<p>\u5728Windows\u4e0a\uff0c\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4e3amyapp.<span class=\"wpcom_keyword_link\"><a href=\"https:\/\/exe.yimenapp.com\" title=\"exe\u5f00\u53d1\u4ece\u4e00\u95e8\u5f00\u59cb\">exe<\/a><\/span>\uff1b\u5728Linux\u548cMac OS X\u4e0a\uff0c\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4e3amyapp\u3002<\/p>\n<p>3. \u8fd0\u884c\u53ef\u6267\u884c\u6587\u4ef6<\/p>\n<p>\u5c06\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u590d\u5236\u5230\u5176\u4ed6\u8ba1\u7b97\u673a\u4e0a\uff0c\u5373\u53ef\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002\u5728Windows\u4e0a\uff0c\u53cc\u51fbmyapp.exe\u5373\u53ef\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\uff1b\u5728Linux\u548cMac OS X\u4e0a\uff0c\u9700\u8981\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cmyapp\u3002<\/p>\n<p>\u603b\u7ed3\uff1a<\/p>\n<p>\u901a\u8fc7\u4f7f\u7528Tkinter Designer\u548cPyInstaller\uff0c\u53ef\u4ee5\u5feb\u901f\u521b\u5efaGUI\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5c06\u5176\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u65b9\u4fbf\u5728\u5176\u4ed6\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tkinter Designer\u662f\u4e00\u4e2a\u53ef\u89c6\u5316\u7684Tkinter GUI\u8bbe\u8ba1\u5668\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u62d6\u653e\u64cd\u4f5c\u6765\u521b\u5efaGUI\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u521b\u5efaGUI\u754c\u9762\uff0c\u800c\u4e0d\u5fc5\u624b\u52a8\u7f16\u5199\u4ee3\u7801\u3002\u5728Tkinter De<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[35152,35151,1870,8878,2445],"special":[],"attr":[],"class_list":["post-39217","post","type-post","status-publish","format-standard","hentry","category-zixun","tag-webexe","tag-windows","tag-1870","tag-8878","tag-2445","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/39217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/comments?post=39217"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/39217\/revisions"}],"predecessor-version":[{"id":39364,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/39217\/revisions\/39364"}],"wp:attachment":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/media?parent=39217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/categories?post=39217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/tags?post=39217"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/special?post=39217"},{"taxonomy":"attr","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/attr?post=39217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}