[issue1100366] Frame does not receive configure event on move

Guilherme Polo report at bugs.python.org
Wed Apr 22 22:03:05 CEST 2009


Guilherme Polo <ggpolo at gmail.com> added the comment:

That is because only the root window changed the position, a Configure
event is fired whenever the window changes its size, position, or border
width, and sometimes when it has changed position in the stacking order.

Try changing your example to verify this.

import Tkinter

def root_conf(event):
    print "root", event.x, event.y

def frame_conf(event):
    print "frame", event.x, event.y

root = Tkinter.Tk()
root.bind('<Configure>', root_conf)

frame = Tkinter.Frame(root)
lbl = Tkinter.Label(frame, text="Test")
lbl.pack()
frame.bind('<Configure>', frame_conf)
frame.pack()

root.mainloop()

----------
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1100366>
_______________________________________


More information about the Python-bugs-list mailing list