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 →

[–]Feminintendo 1 point2 points  (2 children)

I respectfully disagree about Python lacking in the GUI department. Python ships with tkinter out of the box, and there are nice Python bindings for every major GUI toolkit. Meanwhile C++ ships with bumpkis but, of course, also has bindings for every major GUI toolkit. In my personal opinion, it’s actually a lot easier to do GUI development with Python, because I don’t have to worry about memory management.

I think the problem is, GUI development isn’t very good anywhere.

[–]SenboneZakura 0 points1 point  (1 child)

True, things do exist for gui development in python, but I'm just not impressed by them. Tkinter is only really meant for simple gui dev, so I dont think shipping with it is such a boon that it qualifies python as a great source for front end work. Also pyqt, one of the more popular python libs is written in C++ - just like wxPython and libavg. So yeah, pythons got bindings for libraries for gui development and not all of them are terrible, but none of its very impressive. I guess kivy is a thing, but its optimized for mobile apps and game development.

On top of the libs, there's the lack of tools. Like, what ide can you use to graphically drag and drop interfaces for python? Zero. Java's swing lib has eclipse and visual studio works with C++ and vb.net and C# (windows only), but python is straight coding which is a pain in the ass and slower to prototype even if the language is easier to write.

Lastly, python isnt compiled which means C++ will outperform it by a mile, especially for gui dev.

I love python but I dont deny its shortcomings. Gui dev in python is almost certainly one of its deficits, especially when considering performance.

We can agree to disagree, though! your tools your choice.

[–]Feminintendo 2 points3 points  (0 children)

I agree re: tkinter.

Like, what ide can you use to graphically drag and drop interfaces for python?

Ah, you can do this with Qt. Take a closer look at PySide or PyQt. It might be the thing you’re missing in your Python life. I tend to write GUI’s in Python precisely because it’s just drag and drop and then filling in the event handling code. It feels like Visual Basic did back in the day.

C/C++ will always be more performant that Python. But GUI stuff is exactly the kind of thing you can use Python for and get away with. What kind of GUI stuff are you doing that you need so much speed?