mirror of
https://github.com/Afacanc38/gtk-examples-python.git
synced 2024-11-17 12:00:41 +03:00
box => winbox
This commit is contained in:
parent
3e68177ec2
commit
4b8ad5130f
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue