From ca65adb8dbef1aa1850a0e03226050efd1f3f805 Mon Sep 17 00:00:00 2001 From: afacanc38 Date: Sat, 2 Oct 2021 11:51:36 +0300 Subject: [PATCH] updated 3-revealer.py --- handy/3-revealer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/handy/3-revealer.py b/handy/3-revealer.py index 253d63d..e7ab34e 100644 --- a/handy/3-revealer.py +++ b/handy/3-revealer.py @@ -42,7 +42,12 @@ class MyWindow(Handy.Window): def on_rvBtn_clicked(self, widget): 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.connect("destroy", Gtk.main_quit)