Maybe I’m just being crazy, but I’m not really finding wxPython particularly pythonic. For instance, I’m trying to make a fairly simple application that has a SplitterWindow, and I seem to have to do a whole lot of sub-classing to actually get it to work. Feels more like Java than Python. Which I’m really not keen on doing.
Notice • Gomez • Chillout Sessions 9
No, it’s not Pythonic at all since wxWindows is a C++ toolkit and wxPython is just a thin layer of Python on top of it.
When I deal with wx, I use VisualWx for my GUI builder. Makes things a lot easier, IMO.
3 hours, 44 minutes after the fact.
Thanks for the tip. I’ll check it out. It appears to be only Windows, which is okay for school at the moment, but not so good for home.
1 day, 23 hours after the fact.
I agree with you completely.
Oddly enough, Jython - which is actually Java - is more Pythonic than wxPython.
Here’s an example from my scripts.
btn = JToggleButton(lbl, icn, focusable=0, preferredSize=bsz, minimumSize=bsz, maximumSize=bsz, font=fnt, margin=(1, 2, 1, 2))
I’m not too keen on using builders :-/
4 weeks after the fact.
Cool. Thanks for the tipoff. A bit late for my class, although I have only just done a little bit of intro to GUI.
4 weeks after the fact.