osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ttk.Notebook Tabs Question


try
widget["width"] it returns string
then mult by no. of tabs


Abdur-Rahmaan Janhangeer,
Mauritius
abdurrahmaanjanhangeer.wordpress.com

On 12 Sep 2017 06:45, "Wildman via Python-list" <python-list at python.org>
wrote:

> I am working on a program that has a ttk.Notebook with
> 12 tabs.  Is there a way to determine the total width
> of the tabs in pixels.  Just to be clear I am not talking
> about width of the nb container.  I am talking about
> tabs themselves that contain the text.
>
> I want the program to be resizable but I don't want to
> allow the window width to fall below that of the tabs
> which would hide them.  Since I can find no way to have
> more than one row of tabs, this appears to be my only
> option.  Any suggestions would be appreciated.
>
> --
> <Wildman> GNU/Linux user #557453
> May the Source be with you.
> --
> https://mail.python.org/mailman/listinfo/python-list
>