updated 4-stack.py

This commit is contained in:
afacanc38 2021-10-16 15:33:03 +03:00
parent 9769cdaab9
commit de046f45b5

View file

@ -59,6 +59,7 @@ class MyWindow(Handy.Window):
self.hb.pack_start(self.button2) self.hb.pack_start(self.button2)
self.button2.connect("clicked", self.on_button2_clicked) self.button2.connect("clicked", self.on_button2_clicked)
# https://stackoverflow.com/questions/69595073/pygobject-page-switching-with-buttons
def on_button1_clicked(self, widget): def on_button1_clicked(self, widget):
pages = self.stack.get_children() pages = self.stack.get_children()
cur_page = self.stack.get_visible_child() cur_page = self.stack.get_visible_child()