|
From: Alastair D. <ala...@si...> - 2005-03-11 14:02:55
|
The following script (and instructions) shows up a problem on MacOS X = (only) with using the panedwindow and Tile notebook widgets. Items drawn on a canvas within a panedwindow on a notebook tab are often visible, even if = the tab is not selected. I _think_ the culprit here is the panedwindow widget on TkAqua, since we have seen similar behaviour using the BWidget notebook, as well as the = Tile notebook, but I can't say for sure. (The Tile notebook is such a HUGE improvement, we switched as soon as we could!) Source the following script from Wish Shell (either using the Terminal = or the Console, it doesn't matter): =20 package require tile ttk::notebook .n pack .n panedwindow .n.p1 .n add .n.p1 -text "Here be p1" frame .n.p1.f -width 300 -height 300 .n.p1 add .n.p1.f -sticky nesw pack [canvas .n.p1.f.c] -fill both -expand true .n.p1.f.c create rect 40 50 80 90 panedwindow .n.p2 .n add .n.p2 -text "I am p2" frame .n.p2.f -width 300 -height 300 .n.p2 add .n.p2.f -sticky nesw pack [canvas .n.p2.f.c] -fill both -expand true .n.p2.f.c create rect 60 70 100 110 Now shuffle the notebook tabs up and down, leave p1 uppermost and enter = the command .n.p2.f.c create oval 120 120 140 150 The oval is visible, apparently on p1, despite being drawn on p2. = Shuffling the pages again will correct the situation. In our application, we plot results to several notebook pages simultaneously, so we see this a lot. Any advice would be much = appreciated. I'll file a bug if confirmed. Kind regards, Alastair |