Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

<lilo> Fairlight: udp is the light margarine of tcp/ip transport protocols :) -- Seen on #Linux


devel / comp.lang.tcl / ttk::treeview and ttk::style

SubjectAuthor
o ttk::treeview and ttk::styleTorsten Berg

1
ttk::treeview and ttk::style

<e32b6202-016e-4527-9fd6-5d07e278b4b9n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16910&group=comp.lang.tcl#16910

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a37:a843:: with SMTP id r64mr5945276qke.436.1621437875972; Wed, 19 May 2021 08:24:35 -0700 (PDT)
X-Received: by 2002:a4a:b1c2:: with SMTP id j2mr9430109ooo.78.1621437875649; Wed, 19 May 2021 08:24:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 19 May 2021 08:24:35 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=77.23.231.100; posting-account=ZxsDiAkAAAC9vQQOtXQfXsMvri8SBAlg
NNTP-Posting-Host: 77.23.231.100
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e32b6202-016e-4527-9fd6-5d07e278b4b9n@googlegroups.com>
Subject: ttk::treeview and ttk::style
From: berg@typoscriptics.de (Torsten Berg)
Injection-Date: Wed, 19 May 2021 15:24:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 24
 by: Torsten Berg - Wed, 19 May 2021 15:24 UTC

Hi,

I am able to change the layout of ttk::treeview so that the indicator is not shown (I just leave out the Treeitem.indicator):

ttk::style layout Item {Treeitem.padding -sticky nswe -children {Treeitem.image -side left -sticky {} Treeitem.text -side left -sticky {}}}

At the same time, I use a custom style for one of the treeviews:

ttk::style configure navigation.Treeview -rowheight [expr {[font metrics TkTextFont -linespace] + 10}]

So, I can build a custom treeview with

ttk::treeview .t -show tree -style navigation.Treeview -padding 5
set itemID [.t insert {} end -text "an item"]
..t insert $itemID end -text "a subitem"

This, however will still show the indicator. How can I apply a style that will use *both* the custom rowheight *and* leave out the indicator? So to say a custom style that has both changes in one style name so the indicator removal doesn't apply to all treeviews.

Thanks, Torsten


devel / comp.lang.tcl / ttk::treeview and ttk::style

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor