wxPython TextCtrl overwriting

Chris Liechti cliechti at gmx.net
Sat Jul 27 18:10:10 EDT 2002


Chris <h_j_fong at hotmail.com> wrote in 
news:l156ku00l6tghtthgqe3a0tkvjbo0nping at 4ax.com:
> BTW, any idea why python usually crashes so
> horrendously while running my GUI in windows?  It seems like if I
> click on my python window or anything like that while the GUI is up,
> everything crashes fierce; yet the GUI seems to be "bugfree" - if that
> state even exists.  Is there some exception handling I can insert that
> will avoid this?  It's a pain to have to restart IDLE and my program 9
> times out of the 10  I run it.  Cuts my productivty in half.

never, ever run a GUI program out of another.
most GUIs only work when the main loop is stared in the main thread, but 
when you start it out of an other gui, you have two main loops.
(ok sometimes it works, maybe tk in idle, but i don't use that)
some IDEs have a way to run the application in a separate process, which 
solves that problem. (I have a patch for PythonWin to "run external" but it 
still has some small issues)

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list