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

ttk.Notebook Tabs Question

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.