ttk.Notebook Tabs Question

Abdur-Rahmaan Janhangeer arj.python at gmail.com
Thu Sep 14 22:09:21 EDT 2017


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
>



More information about the Python-list mailing list