a second TKinter

Steve Holden steve at holdenweb.com
Fri Feb 10 07:21:52 EST 2006


linda.s wrote:
> On 2/10/06, Michael Foord <fuzzyman at gmail.com> wrote:
> 
>>
>>
>>On 10/02/06, linda.s <samrobertsmith at gmail.com> wrote:
>>
>>>I found if I opened a second TKinter, Python will go out of work. But
>>>I need two graph outputs at the same time. What to do?
>>>Linda.
>>>
>>
>>
>>Hello linda (?),
>>
>>How are you opening a 'second Tkinter' ? There is no problem with having two
>>top level windows at the same time, you can't hjave two 'mainloops' though.
>>:-)
>>
>>All the best,
>>
>>Fuzzyman
> 
> What does "having two top level windows" mean?
> Can you give an example?
> For opening a second tkinter, i mean that I run python using
> PythonWin: if I run the code again when the first Tk is still open,
> then the program will crash.

You are actually doing well to run even *one* Tkinter-based application 
under PythonWin, since PythonWin is an MFC-based Windows application. 
There may well be conflict between the multiple windowing modules in use.

Not a good idea to run GUI-based applications under an IDE that isn't 
designed to handle them. Sorry.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list