Prev: What widget to choose for displaying a tree with checkboxes?
Next: Tcl-URL! - weekly Tcl news and links (Feb 12)
From: Georgios Petasis on 11 Feb 2010 15:45 Hi all, See this image: http://www.ellogon.org/~petasis/tcl/Images/Tile-VariousStyles.png Something seems to change how ttk widgets are drawn, and the same code results in having different visual style. I still haven't found what causes it... All 3 windows are from the same app, inside the same interpreter. I suspect that some package I use calls "package require tile" in 8.6, and widgets created after this are different. I still haven't figured out which package does this... (I suspect tablelist_tile or BWidgets...) George
From: Csaba Nemethi on 11 Feb 2010 18:26 Georgios Petasis schrieb: > Hi all, > > See this image: > http://www.ellogon.org/~petasis/tcl/Images/Tile-VariousStyles.png > > Something seems to change how ttk widgets are drawn, and the same code > results in having different visual style. I still haven't found what > causes it... > > All 3 windows are from the same app, inside the same interpreter. I > suspect that some package I use calls "package require tile" in 8.6, and > widgets created after this are different. I still haven't figured out > which package does this... > > (I suspect tablelist_tile or BWidgets...) > > George Tablelist_tile doesn't invoke "package require tile" if the Tk version is 8.5 or later. -- Csaba Nemethi http://www.nemethi.de mailto:csaba.nemethi(a)t-online.de
From: Erik Leunissen on 12 Feb 2010 03:07 Georgios Petasis wrote: .... I still haven't figured out > which package does this... > Something along these lines should help you find it quickly: proc handleTrace {args} { # if {[regexp tile $args]} { puts $args # } } trace add execution package enter handleTrace Greetings, Erik > (I suspect tablelist_tile or BWidgets...) > > George -- leunissen@ nl | Merge the left part of these two lines into one, e. hccnet. | respecting a character's position in a line.
From: Georgios Petasis on 12 Feb 2010 07:16 στις 12/2/2010 10:07, O/H Erik Leunissen έγραψε: > Georgios Petasis wrote: > > > ... I still haven't figured out >> which package does this... >> > > Something along these lines should help you find it quickly: > > > proc handleTrace {args} { > # if {[regexp tile $args]} { > puts $args > # } > } > trace add execution package enter handleTrace > > > Greetings, > > Erik > >> (I suspect tablelist_tile or BWidgets...) >> >> George > > Here is an execution trace: package require tablelist_tile {package require tablelist_tile} enter {package provide tablelist_tile 4.12.1} enter {package require Tcl 8.4} enter {package require Tk 8.4} enter {package require -exact tablelist::common 4.12.1} enter {package provide tablelist::common 4.12.1} enter {package provide tablelist::common 4.12.1} enter {package require tile 0.6} enter {package require Tcl 8.4} enter {package require Tk 8.4} enter {package require Tcl 8.4} enter {package require Tk 8.4} enter {package provide keynav 1.0} enter {package provide Tk} enter {package vsatisfies 8.6b1.1 8.5} enter {package provide ttk::dialog 0.8} enter {package provide ttk::theme::vista 1.0} enter {package provide ttk::theme::aqua} enter {package provide ttk::theme::vista} enter {package provide tile 0.8.3} enter {package provide tablelist_tile 4.12.1} enter {package require Tcl 8.4} enter {package require Tk 8.4} enter {package require -exact tablelist::common 4.12.1} enter {package provide tablelist_tile 4.12.1} enter {package provide Tablelist_tile 4.12.1} enter {package provide ttk::theme::aqua} enter {package provide tile::theme::aqua} enter {package require Tcl 8} enter {package require Tk 8} enter {package versions tile} enter 4.12.1 George
From: Georgios Petasis on 12 Feb 2010 07:20 στις 12/2/2010 01:26, O/H Csaba Nemethi έγραψε: > Georgios Petasis schrieb: >> Hi all, >> >> See this image: >> http://www.ellogon.org/~petasis/tcl/Images/Tile-VariousStyles.png >> >> Something seems to change how ttk widgets are drawn, and the same code >> results in having different visual style. I still haven't found what >> causes it... >> >> All 3 windows are from the same app, inside the same interpreter. I >> suspect that some package I use calls "package require tile" in 8.6, and >> widgets created after this are different. I still haven't figured out >> which package does this... >> >> (I suspect tablelist_tile or BWidgets...) >> >> George > > Tablelist_tile doesn't invoke "package require tile" if the Tk version > is 8.5 or later. > Dear Csaba, In my system it does call tile (ActiveTcl 8.6 beta 2). It seems to have tablelist 4.12.1. It is not a major problem (in fact the tile package looks better than the Ttk one in my system, as comboboxes seem to be drawn with the button cut in half in windows 7). Just a small resize in the main window, as Ttk seems to use a different (larger font) than tile. Regards, George
|
Next
|
Last
Pages: 1 2 3 Prev: What widget to choose for displaying a tree with checkboxes? Next: Tcl-URL! - weekly Tcl news and links (Feb 12) |