ttk.Notebook Tabs Question

MRAB python at mrabarnett.plus.com
Fri Sep 15 15:45:20 EDT 2017


On 2017-09-15 16:24, Wildman via Python-list wrote:
> On Fri, 15 Sep 2017 06:09:21 +0400, Abdur-Rahmaan Janhangeer wrote:
> 
>> try
>> widget["width"] it returns string
>> then mult by no. of tabs
> 
> Since the tabs are displaying text, I believe the width
> would be returned as characters or letters like a Button
> or Text widget.  I need pixels.
> 
Why assume that the width is returned as characters? Why not try it?

> Another problem is that the tabs are different widths.
> 
> I am going to experiment with the possibility of using
> images in place of the text.  Then I believe the width
> would be returned in pixels.
> 
> Thanks for the reply.
> 



More information about the Python-list mailing list