Skip to content
Advertisement

How to have tabs of a ttk Notebook in different rows?

enter image description hereIn the below program i have many tabs in a single notebook page. when the number of tabs increases the look changes. So how to put the tabs in different rows

As in attached image, I have many tabs in a single row, but I want some tabs say from JJJJ in a below row.

How to set tabs in different row also how to give different colors to tab(highlight the tab) when selected?

JavaScript

Advertisement

Answer

It is not possible with ttk to do this and it is a horrible design anyway. Instead, create an “options dialog” where you put either a list or a treeview in a panel on the side and use that to select among your many subpages. You can then use a notebook without tabs or simply switch in different frames containing your child pages in response to clicks on the selection pane.

Search google images for “options dialog” to see any number of implementations of this scheme. Multiple rows of tabs is a really bad design from a usability perspective.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement