Seite 1 von 1

[gelöst] Gtk3 StackSwitcher aktiven Stack setzen

Verfasst: Freitag 15. Juli 2016, 16:30
von martinjo
Hallo,

ganz nett bei GTK3 finde ich den StackSwitcher
http://python-gtk-3-tutorial.readthedoc ... ckswitcher
http://lazka.github.io/pgi-docs/Gtk-3.0 ... ckSwitcher

Ich möchte dort gerne den beim starten des Programmes aktiven Stack selbst auswählen.

Kann jemand sagen ob und/oder wie dies möglich ist?

Danke

Re: Gtk3 StackSwitcher aktiven Stack setzen

Verfasst: Freitag 15. Juli 2016, 16:54
von martinjo
set_visible_child_full(name, transition)[source]
Parameters:
name (str) – the name of the child to make visible
transition (Gtk.StackTransitionType) – the transition type to use
Makes the child with the given name visible.

Note that the child widget has to be visible itself (see Gtk.Widget.show()) in order to become the visible child of self.
Das Kind-Widget muss erst sichtbar sein.