3 ms·
So aticle is from 2015. End of 2017 I wanted to make really simple GUI for a python script. It turned out making a GUI with 5 buttons and shipping it as exe in
by zaro 9y ago
So aticle is from 2015. End of 2017 I wanted to make really simple GUI for a python script. It turned out making a GUI with 5 buttons and shipping it as exe in Python 3.6 is extremely complicated and convoluted.
I wrote the main logic in 30min, and spend 2 days figuring out the GUI and the packaging to Exe.
- pen2l 9y agoPerhaps the real problem is GUI framework fragmentation or confusing docs, because I ship GUI applications with tkinter and pyinstaller without great issues (pyinstaller -m hehe.py and you’re done! Single file exe you have).
- zaro 9y agoWell. I tried cxfreeze first, an sit failed on including tkinter properly. And while pyinstaller handled tkinter w/o issues, it failed miserably with scrapy requiring workarounds and many trial and errors. Anyway, having packaged apps in Javascript (nodejs) , Java and several other languages/tools/frameworks , I find the state of packaging and GUI in Python simply pathetic, it really takes you 20 years back :)
- jftuga 9y agoThe next time you need a .exe with GUI, you might want to also try C# with the free version of Visual Studio (Community Edition). C# is pretty easy and there are lots of examples, stackoverflow questions, github projects, etc. to learn from. If you target .net framework 4.5.2, then your app will run on any computer running Windows 7 or newer. Also, the executable size will probably under 200k for a simple application. Visual Studio makes it really easy to build a GUI and attach widget event handlers, too.
- zaro 9y agoThanks for the suggestion. I kind of already know that. But does c# has something like scrapy? Scrapy is really good for scraping, makes it really easy to write all kind of scrapers and the performance is excellent for something you hack up in 30min.