Curious behaviour of Tkinter object

Z

zefciu

I am writing a program with python and Tkinter. I have encountered a
mysterious problem with the whole application hanging itself (cannot be
stopped with ctrl-c, must be killed from another console). I have done
several tests with interactive mode, and here what I noticed:
- the problem is with a class MandelSetWindow that I attach, as other
classes work properly

- the class can be initialized properly, but behaves strangely with
other windows. Here is how to reproduce this bug:

* import Tkinter.Tk and this class
* create a Tk() instance and take a reference to it
* create an instance to this class (can use (None, None) as arguments)
and take a reference to it

Now everything looks normal. Both references refer to objects like they
were created. But try to e.g. withdraw() either the root Tk window or
this dialog. You will notice that the other withdraws. I really can't
understand why it happens like this.

zefciu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top