Hi, ALL,
I need to create a properties dialog with 6 different suboptions, which will be displayed on 6 different panels of the notebook…
However the regular screen will not accommodate them and so I will have a little left/right buttons to scroll.
Is it possible to have a multi line notebook so everything will be displayed at once and user will not need to scroll left/right?
Why using a GtkNotebook for that?
(it’s intended for a dynamic number of tabs, instead of a fixed count like here)
Just use a GtkStack for storing the panels. You can get the panels list model with Gtk.Stack.get_pages , and then feed that model to widgets like GtkFlowBox or GtkGridView to generate the tabs.
That said, I would personally go for a simple GtkStackSidebar instead, when the horizontal space is too narrow.
No, it just shows the selected panel.
Additionally, you will need another widget to act as “header bar” to select the visible page. That “header bar” widget can be a GtkFlowBox or GtkGridView, as suggested. Both can be setup from a list model, so adding new pages to the GtkStack will automatically add a “tab” widget to the GtkFlowBox or GtkGridView.
@gwillems ,
Then its not what im looking for. User should be able to click on the arbitrary page at any given time and make changes.
The only problem is - if there are too many pages users will need to scroll to get to the one they need. Thats why i asked for multiline notebook.
But i guess its not supported. Sad.
Thank you.
P. S.: Actually some object have as little as 2 pages and some have ad much as 8. Thats why i thought that notebook is a perfect control for that. Except whole control is not visible at once…