[Apologies to the list if this response shows up twice]
Jim Peterson wrote:
I'm looking for a win32 gui technology. I want wxpython to work but
I've got problems and misgivings.
Jim, I'll take a stab at your problems. I strongly suggest looking at
the wxPython wiki (wiki.wxpython.org) as it has some fantastic info in
it. In particular, check out the "GettingStarted" page linked off of
the front page of the wiki.
I can run the wxPython demo app okay. When I copy the demo source
into my own file, save, and then run it, it doesn't work. I've tried
running the code by clicking on the file in windows explorer. I've
tried running the code from PythonWin.
There are several things going on here. One, some of the demo files
have are dependant on other files in the demo folder. If you copy that
code into a new file somewhere else, it is going to have problems. In
addition, PythonWin in the past was known to have trouble with
applications which had their own event loop. (GUI frameworks, for
example I'm not sure if this is still the case as I don't use
PythonWin, but have read about issues with it in the past.
When I launch from Windows Explorer, I can't see the output (flashing
DOS console).
So you're getting a traceback, but the command shell closes as soon as
python.exe finishes trying to run the script. One method you can use to
capture this traceback information is to change the way you are
instantiating the wxPython application class.
[taken from the wiki]
myapp = MyApp(redirect = 1, filename = 'filespec')
This should route traceback info to the file you specify for the second
parameter.
When I run from within PythonWin, I find various imports fail. From
PythonWin, I cannot import images or import run. I don't what these
modules might be. I have no images.py or run.py in my Python install.
These are both python files located in the wxPython demo folder, and not
part of the wxPython toolkit per se. (Which is why your code (in
another folder) can't import them.)
I can import wx into PythonWin. When I attempt to use the browse tool
on the wx module (import wx, then Tools-Browser-wx) PythonWin crashes
with an error log. My event log contains errors that seem related to
the fact that IIS/FTP/WWW/SMTP are disabled on my machine.
On my system PythonWin had some tracebacks as I navigated the wx
hierarchy. Sounds like problems with the browser functionality in
PythonWin.
Is wxPython ready for a newbie who needs to be productive, or would it
better to wait a little longer?
IMO, wxPython is definitely production ready. I imagine there are
plenty of people on this list using wxPython in production environments.
The wxWidgets (toolkit that wxPython wraps) website has a page up
listing some of the companies, government organizations, etc. using it.
(http://www.wxwidgets.org/users.htm) Some names that jump out are
NASA, Lockheed Martin and Xerox. I'm not sure if there is a similar
list out there for wxPython, unless it is on the wiki.
However, _regardless of the toolkit you choose_ be prepared to read some
documentation. TANSTAAFL, and all that. The wiki is your friend, as is
this mailing list. I'm astonished at the number of messages Robin Dunn
replies to each week - somehow he still manages to get some coding done.
I must learn his secret