box => winbox

This commit is contained in:
Alperen İsa 2021-08-30 15:28:39 +03:00 committed by GitHub
parent 3e68177ec2
commit 4b8ad5130f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -14,20 +14,20 @@ class MyWindow(Handy.Window):
self.add(self.handle)
# Box
self.box = Gtk.Box(spacing=6, orientation=Gtk.Orientation.VERTICAL)
self.winbox = Gtk.Box(spacing=6, orientation=Gtk.Orientation.VERTICAL)
self.handle.add(self.box)
# Headerbar
self.hb = Handy.HeaderBar()
self.hb.set_show_close_button(True)
self.hb.props.title = "HeaderBar Example"
self.box.pack_start(self.hb, False, True, 0)
self.winbox.pack_start(self.hb, False, True, 0)
# Label
self.lbl = Gtk.Label()
self.lbl.set_text("Hebele hübele")
self.lbl.set_justify(Gtk.Justification.CENTER)
self.box.pack_start(self.lbl, True, True, 0)
self.winbox.pack_start(self.lbl, True, True, 0)
win = MyWindow()