1

I am looking to know what is the best practice to make a window which the content changes, but without changing the window. Something like using tabs, but with no tabs, controlled with buttons.

What widget should i use to archive what i need?

And if you don't mind the little off-topic, should it be drawn manually or with a GUI designer like glade? It is meant to be used within python.

1 Answer 1

3

If you can use GTK 3.10, take a look at GtkStack and GtkStackSwitcher. If not, use GtkNotebook and set the show_tabs property to False, then build your own buttons.

Sign up to request clarification or add additional context in comments.

2 Comments

Hi, thanks for your answer. Can you please provide any tip or guide on how to create childs? That documentation you gave it's for C, and this one ( lazka.github.io/pgi-docs/api/Gtk_3.0/classes/Stack.html ) gives a core dump after a try: pastebin.com/2G2r5J3K Whats wrong?
In line 7 you're trying to add the stack to itself, that won't work. Add it to another container.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.