mirror of
https://github.com/Afacanc38/gtk-examples-python.git
synced 2024-11-17 03:55:05 +03:00
updated 3-revealer.py
This commit is contained in:
parent
3bc642e570
commit
ca65adb8db
1 changed files with 6 additions and 1 deletions
|
@ -42,7 +42,12 @@ class MyWindow(Handy.Window):
|
||||||
|
|
||||||
def on_rvBtn_clicked(self, widget):
|
def on_rvBtn_clicked(self, widget):
|
||||||
reveal = self.revealer.get_reveal_child()
|
reveal = self.revealer.get_reveal_child()
|
||||||
self.revealer.set_reveal_child(not reveal)
|
if reveal == True:
|
||||||
|
self.revealer.set_reveal_child(False)
|
||||||
|
self.rvBtn.set_label("Show headerbar")
|
||||||
|
else:
|
||||||
|
self.revealer.set_reveal_child(True)
|
||||||
|
self.rvBtn.set_label("Hide headerbar")
|
||||||
|
|
||||||
win = MyWindow()
|
win = MyWindow()
|
||||||
win.connect("destroy", Gtk.main_quit)
|
win.connect("destroy", Gtk.main_quit)
|
||||||
|
|
Loading…
Reference in a new issue