python学习 (三十六) wxpython
Pycharm 里安装wxPython 并且用Pyinstaller打包:
1: pycharm, File -> Setting -> Project Interpreter, 点击加号,安装wxpython,
然后安装PyInstaller.
2: 建立一个文件 gui.py, 写一个hello world的wxpython程序。
# First things, first. Import the wxPython package. import wx # Next, create an application object. app = wx.App() # Then a frame. frm = wx.Frame(None, title="Hello World") # Show it. frm.Show() # Start the event loop. app.MainLoop()
3: 运行PyInstaller -F gui.py,
就会生成一个dist文件,里面就是打包的python程序,可以双击运行。
相关推荐
香飘叶子 2020-09-14
举 2020-02-14
Laozizuiku 2020-01-01
jacktangj 2011-04-21
鹤之淇水 2019-05-07
hzx0 2019-05-07
albertjone 2019-05-07
cairencong 2015-01-03
小炮集揣 2012-11-10
厚嘉的it窝 2018-09-03
海水梦悠悠 2018-09-03
linchunmian 2018-08-31
FireMicrocosm 2018-08-23
pythonwangjunji 2018-04-25
xirongxudlut 2018-01-15
染血白衣 2017-12-28
xiaobote 2016-07-21