Thomas Eyde said:
Hi all,
Are there any tutorials or other resources on Windows GUI programming? ...
I have found a few tutorials on Python itself and some pointers to
different GUI toolkits, but no tutorials.
Thanks, Thomas
Ah, something I'm currently struggling with. First, I worked through a
couple of Python tutorials. Then I installed wxPython. Now, I've trying to
figure out how to use it. Lots of support tools with little documentation
for the newbie. There is all kind of stuff out there like PyCrust,
Scintilla, etc. It's really tough to figure out where or how to start. FWIW
(less than 2 cents!!), here is how I'm currently tackling wxPython:
0) Install Python, wxPython, and SPE 0.5.1.g (Stani's Python Editor from
http://www.spe.pycs.net)
1) open the Python IDLE with an edit window
this is where I write my code then F5 to run it under IDLE
2) open SPE, go to help, open wxWindows documentation.
page through it to find a function I need
3) take function I found in step 2 and go back to IDLE. Guess the form of
the function name and do a help in IDLE
e.g., I find wxFrame in wxWindows. I've learned that wxPython converts
these to names like wx.Frame. So I do
help(wx.Frame) at the IDLE >>> prompt to get the correct Python
calling sequence. Take this to step 1 and repeat.
4) Also, in another window, I have the wxPython demo running. This is also
a good place to find functions, classes, etc.
Using all the above, I've created a simple Frame with Panels and radio
controls. By following the demo and some of the tutorials, I can kind of
guess what is happening, but often have no idea of why some things don't
work (like Frame within a Frame doesn't work as expected). It's all very
much monkey see, monkey do, and if another monkey hasn't done it, you're
SOL. I've done some work under MFC with Visual C++, and miss that level of
documentation (and handholding, I know). Don't miss the high cost of VC++ or
the books.
I tried using Tools/wxGlade under SPE, but crashed it. Probably my requests
were so incredibly stupid, wxGlade couldn't take it. I could probably use
SPE for everything, but find it too overwhelming right now. Eventually, I
will use it for more than just a help file. PyCrust (or just Py now) sounds
like it might be useful, but where to start?
Anyway, here are some of the wxPython tutorials I found:
http://wxpython.org/tutorial.php
http://www-106.ibm.com/developerworks/library/l-wxpy/index.html "wxPython
for Newbies" (uses old naming convention)
http://wiki.wxpython.org/ various tutorials and docs