Hi,
On Tue, 13 Feb 2018 17:11:47 -0700
Bob van der Poel wrote:
> Getting closer :)
>
> I asked the question wrongly. I need to determine the number of VISIBLE
> lines in the listbox.
Should be (as used in my previous example)
visible_lines = lb.nearest(lb.winfo_height()) - lb.nearest(0)
I experimented with tkinter.ttk.Treeview and tkinter.Listbox on Python3.
I need a list widget with multiple columns (this could be Treeview).
But I need images as values. I don't want to use column '#0' for
images. Images should appear in the second column for example.
Tk itself has a treectrl. M
X-Post: https://stackoverflow.com/q/48736168/4865723
I want to know how height (in pixel) is a row in a tkinter.Treeview.
I know how I can manipulate the height (see example below) with the
styling mechanism. But I want to read it first - because it depends on
the operating system, fonts, etc. An
On 2018-02-14 01:14 wrote:
> But I need images as values. I don't want to use column '#0' for
> images. Images should appear in the second column for example.
A workaround would be to keep the '#0' column with the image.
But I need to remove the tree space (some pixel on the left of the
picture)
Thanks Micheal! I am going to save the "number of lines" snippet for future
reference.
Best,
On Wed, Feb 14, 2018 at 3:42 PM, Michael Lange wrote:
> Hi,
>
> On Tue, 13 Feb 2018 17:11:47 -0700
> Bob van der Poel wrote:
>
> > Getting closer :)
> >
> > I asked the question wrongly. I need to det