I’m trying to build an application which UI would be based on the same UI than in Gnome Control Center :
- a left vertical bar with main application options
- when an option is chosen : in the left vertical bar, the main application options are replaced by the specific options of the choice done. A left arrow on top left allow to go back to 1)
- a center/right place for details of the specific option
This is what we see in Gnome Control Center with
main parameters categories
list of applications when option “applications” is chosen in 1)
example : https://1175654.v1.pressablecdn.com/wp-content/uploads/2019/02/gnome-settings-applications.jpg
parameters specific to the application chosen in 2)
I believe that it’s using GtkStack, GtkStackSideBar but I don’t find a tutorial to learn how to implement those components and looking at Gnome Control Center UI files weren’t really helpful.
Does somebody knows of a good tutorial of how to implement that kind of UI ? Or a easy-to-understand XML UI code ? Thanks in advance.
It seems that this is libhandy library that I would need to use in order to generate the like of Gnome Control Center UI.
Sounds like you want to have scrolling, use GtkViewport.
Or for simple paging use a GtkHBox and do GtkWidget::show() or GtkWidget::hide()
Yes i will have to use that kind of container components but my question was more about the global UI concept : I want to use the same kind of UI than in Gnome Control Center. Now, i understand that this is done via the libhandy library that is developed for librem5 and with objective of be usable in mobiles and laptops thanks to adaptive components.
I try to use the libhandy library but again i meet an issue :
- It’s working fine in a standalone python script launch with command line “python3 myscript.py”.
- But it’s ko when I use the same script inside an IDE (tested with Builder and PyCharm) I get the error message “ValueError: Namespace Handy not available”.
The line refered to this error is the first line of following block :
from gi.repository import Handy
I didn’t find how to resolve that issue so far.
Finally, as I didn’t find how to use libhandy, i’m using stacksidebar and stackswitcher.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.