def __init__(self, window):
"""
Provides
:param window: Main application window reference, serves as communication hub
"""
super(Gtk.HeaderBar, self).__init__()
self.set_show_close_button(False)
try:
self.set_has_subtitle(True)
except AttributeError:
pass # Too bad?
# Set default window title
self.props.title = _("Preferences")
self.__window = window
self.__menu = Gtk.Menu()
# Fill it with all the wigets
self.__populate_headerbar()
评论列表
文章目录