Getting back into PyQt and not loving it.

llanitedave llanitedave at birdandflower.com
Mon Jun 27 13:23:38 EDT 2016


On Sunday, June 26, 2016 at 11:16:01 PM UTC-7, John Ladasky wrote:
> On Sunday, June 26, 2016 at 7:41:17 PM UTC-7, Michael Torrie wrote:
> > If GTK+ had first-class support on Windows and Mac, including native
> > themes and seamless UI integration (file and print dialogs), I'd say
> > GTK+ would be the only game in town for Python programmers.
> > Unfortunately, unless you're only concerned with Linux, GTK+ is probably
> > not going to be your choice.
> 
> Although I work almost exclusively in Linux, I've been teaching Python for several years as a sideline, and my students usually do not use Linux.  I insist on teaching my students Python 3.  Unless they're professionals who must work with legacy code (and, so far, none of them have been), I think I would be doing them a disservice to teach them Python 2.
> 
> I started with WxPython, but WxPython/Phoenix has been very slow to migrate to Python 3.  
> 
> Between the Py3 requirement and the need to work with all major OS's, I decided to learn PyQt and not GTK+.  
> 
> In my current day job, I'm developing an application on a Linux box, but I'll be handing it off to Windows users.  My choice of PyQt turned out to be the right one in that situation as well.

I produced a couple of applications using wxPython 2.8 and Python 2.7, and I was happy with how they turned out, but since I moved to Python 3 I got tired of waiting for a Phoenix release that I felt comfortable with, so I've been learning PyQT lately. I do find that PyQt is more straightforward in many respects than wxPython, but the difference for me has always been how well organized and understandable the documentation is.  The PyQt examples seem very comprehensive, but the code is poorly commented and there are some quirks that are confusing me.   The original wxPython book was quite well put together and extremely helpful, and I miss having something like that for Qt.  I'm going through the eBook on PyQt4, but I'm not yet sure how well it will translate to PyQt5, which I'm trying to develop with.  I do think I'll stick with it, though.  Once I learn it I think it will serve me well.



More information about the Python-list mailing list