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

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()