def __init__(self, app): Window.__init__(self, app, self.gtk_builder_file, self.window_name) self.prefs = app.prefs self.gtk_window.connect("delete_event", self.close) self.btn_close.connect("clicked", self.close) self.btn_file_add.connect("clicked", self.add_file) self.btn_file_remove.connect("clicked", self.remove_file) self.btn_dir_add.connect("clicked", self.add_dir) self.btn_dir_remove.connect("clicked", self.remove_dir) self.init_files_list() self.init_dirs_list()
def __init__(self, app): Window.__init__(self, app, self.gtk_builder_file, self.window_name, True) self.prefs = app.prefs self.gtk_window.connect("delete_event", self.close) self.gtk_window.connect("key-press-event", self.win_keypress) self.notebook.connect("switch-page", self.switched_tab) self.btn_search.connect("clicked", self.btn_search_clicked) self.lbl_path.connect("activate-link", self.lbl_path_clicked) self.lbl_options.connect("activate-link", self.options_clicked) self.lbl_new_tab.connect("activate-link", self.new_tab_clicked) self.lbl_close_tab.connect("activate-link", self.close_tab_clicked) self.cbox_path.forall(self.cbox_disable_togglebutton_focus, None) self.cbox_search.forall(self.cbox_disable_togglebutton_focus, None) self.lbl_path.set_has_tooltip(False) self.lbl_options.set_has_tooltip(False) self.lbl_new_tab.set_has_tooltip(False) self.lbl_close_tab.set_has_tooltip(False) self.initNotebook() self.initNewTab()