• Welcome to the new COTI server. We've moved the Citizens to a new server. Please let us know in the COTI Website issue forum if you find any problems.
  • We, the systems administration staff, apologize for this unexpected outage of the boards. We have resolved the root cause of the problem and there should be no further disruptions.

GUI Travels

Shonner

SOC-14 1K
Thanks to Simon, I am now convinced that PyQt4, using Qt Designer, is far more smooth and easy compared to using wxGlade for building GUIs. Just need to mark up a GUI diagram for my next project. Been using Pyrcc4 to convert my PNG icons into raw data (Python resource files) that Python imports with the GUI I'm experimenting on. Been following YouTube videos on converting UI and QRC files into Python. Then I convert the whole thing into EXE using Py2exe.

Kind of cool so far.
 
Of course this also means every time you hit a roadblock it'll be my fault too, but I can take the hits ;)

I followed the same route, starting with Wx, giving up and going to Qt.

QtDesigner is brilliant. Even if you end up doing the UI programmatically, it's a great way to explore the widget library, their properties and how they come together visually.

The are two things in Qt that took me a while to get my head around properly. Signals and slots is one, and the MVC framework is the other (which uses signals and slots), but learning to use them effectively is like gaining superpowers. That's how you can change a world's properties in the world editor and the change appears immediately in the map view, or you can add a route or change its colour if a dialogue and the map view updates instantly. No 'redraw map' button required.

Simon Hibbs
 
Thank goodness there is stackoverflow.com

That's where I been learning how PyQt works. Because others have run into and solved any problems already that I find myself in.
 
Back
Top