Gtk.HeaderBar is same as the horizontal
Gtk.Box, it allows to place children at the start or the end and title to be displayed. GTK+ supports Client Side Decoration hence we can use a
Gtk.HeaderBar in place of the title bar. The title will be centered with respect to the width of the box. A
Gtk.HeaderBar is usually located across the top of a window and should contain commonly used controls which affect the content below. They also provide access to window controls, including the close window button and window menu.
Follow below steps:
- import GTK+ 3 module.
- Create main window.
- Create HeaderBar.
- Create Button.
- Create Box.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.