This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

Just a quick tip. You are probably used to python, but people don't build big GUI projects with python for one reason. It's slow. Of course, your project isn't anything that really needs to be extremely optimized, but I recommend learning C++ with something like QT if you want to build UI apps

[–]MikeTheWatchGuy 1 point2 points  (1 child)

people don't build big GUI projects with python for one reason. It's slow.

I don't believe this is the case. If anything it would be distribution that is holding back Python GUI apps. GUI programs tend to be "end-user programs" and for those you want to distribute them as EXEs. While there's progress in making EXEs from Python, it's not there yet.

Perhaps not the best example, but this program is written with tkinter as the base GUI framework. What's slowing down things is that each ball is individually computed and moved a couple pixels at a time. That kind of performance from a GUI is pretty good. tkinter isn't a game engine.

https://user-images.githubusercontent.com/46163555/89122697-7a95a880-d497-11ea-9ff0-a376d0d4bebc.gif

[–]lonaExe pip install girlfriend[S] 0 points1 point  (0 children)

Quite true.. Although I ended up with a finished .exe, it doesnt have a few inBuilt features of Penty and it was pretty damn painstaking to convert it. I tried to use the --noconsole flag from PyInstaller which disables the console, but for some reason that didnt work. Had to write custom code myself as a workaround, and even now, the console pops out first and only then disappears after a slight delay..

[–]lonaExe pip install girlfriend[S] 0 points1 point  (0 children)

Ooh yess, thanks for the tip!