Advertisement
Guest User

Untitled

a guest
May 16th, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import gi
  2.  
  3. gi.require_version("Gtk", "3.0")
  4. gi.require_version("Handy", "1")
  5.  
  6. from gi.repository import Gtk, Handy
  7.  
  8. Handy.init()
  9.  
  10. window = Handy.Window()
  11. headerbar = Handy.HeaderBar()
  12. button = Gtk.Button(label="example")
  13. headerbar.pack_start(button)
  14. squeezer = Handy.Squeezer()
  15. squeezer.add(headerbar)
  16. box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
  17. box.pack_start(squeezer, False, False, 0)
  18. window.add(box)
  19.  
  20. window.show_all()
  21.  
  22. Gtk.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement