![]() Ttk::style configure Treeview.Row ?options? - background color Configures the background color of rows that contain data values when applied to a. padding Additional padding to include inside the border of the widget body, including the heading - rowheight pixels Adjusts the rowheight (spacing between rows) in the treeview, distance is in pixels. font fontSpec Configures the font for the contents of the tree (not the heading) - foreground color Configures the foreground for the contents of the tree - indent pixels Adjusts the indentation amount of child elements below parent elements within the tree column. Ttk::style configure Treeview ?options? - background color Configures the background color of rows that contain data values - fieldbackground color Configures the background color of the unused portion of a treeview widget (any area not covered by rows of data). Ttk::style configure Treeview.Heading ?options? - background color Configures the background color of the heading - font fontSpec Configures the font for the heading - foreground color Configures the foreground color of the heading - padding Additional padding to include inside the border of the heading. MAG : See also: ttk::style toolbar treeview ![]() Maybe someone else can confirm those too, hopefully with an example on this page, and delete this part of the note. ![]() However, I have not been able to configure the style of some of the rest of the elements that appear on this page, namely Treeview.Row, Treeview.Item, Treeview.Cell and I have marked them with a (?). The mappings for Treeview.Heading are also confirmed to work. This is for Tk 8.5.8.ĭzach () I changed the style to be similar to the tklib, added a few more ttk::style configuration options for Treeview and Treeview.Heading styles, which I have confirmed working with wish8.6. This initial version is quite incomplete, as it only documents those bits I've deduced so far. The intent is to not have to repeat the trial, error, or reading in order to remember how to utilize the ttk::style command to style various Ttk widgets. This page is intended to collect in one place various bits of knowledge gained through much trial, many errors, and some reading the C code of the Tile widget set.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |