From: Kennedy, A. \(GE Healthcare\) <And...@ge...> - 2006-02-06 22:26:26
|
Hi folks, I'm having a problem with redrawing in the following context. I have a = Notebook, and one of the pages in that notebook defines another = Notebook. If you select the page that doesn't contain a notebook, and = then cause a redraw to take place (just change focus away from the = window), the controls from the page containing the notebook show through = into the current page. Here's some simple code that demonstrates the problem. Run the code, = pick Page 2, and then cause the window to lose focus and the problem = will be manifestly obvious. Any pointers with regards to where I should = look? Also cross-posted to the Python-Mac mailing list. The problem = only manifests itself on the Mac, the same code under the PC or Linux = environment will run without issue. System information... Mac OS X 10.3.9, Python 2.4.1 Framework build, = Tcl/Tk 8.4.6 Framework build, Pmw 1.2 Thanks very much, Andrew import Tkinter import Pmw root =3D Tkinter.Tk() nb1 =3D Pmw.NoteBook(root) pg1 =3D nb1.add('Page 1') pg2 =3D nb1.add('Page 2') nb2 =3D Pmw.NoteBook(pg1) pg3 =3D nb2.add('Page 3') pg4 =3D nb2.add('Page 4') button1 =3D Tkinter.Button(pg3,text=3D'Button1',width=3D10) button1.grid(row=3D0,column=3D0) button2 =3D Tkinter.Button(pg2,text=3D'Button2',width=3D20) button2.pack() nb2.pack(fill=3D'both',expand=3DTrue) nb1.pack(fill=3D'both',expand=3DTrue) root.mainloop() |