Message86324
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() |
|
Date |
User |
Action |
Args |
2009-04-22 20:03:05 | gpolo | set | recipients:
+ gpolo, loewis, akameswaran |
2009-04-22 20:03:05 | gpolo | set | messageid: <1240430585.06.0.903160957364.issue1100366@psf.upfronthosting.co.za> |
2009-04-22 20:03:03 | gpolo | link | issue1100366 messages |
2009-04-22 20:03:03 | gpolo | create | |
|