Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def do(self):
SimpleAction.do(self)
Gtk.main_quit()
def do(self):
SimpleAction.do(self)
# Open the russian dolls to retrieve the selected label.
label_list = self.__doc_properties.lists['labels']['gui']
selected_row = label_list.get_selected_row()
if selected_row is None:
logger.warning("No label selected")
return True
label_box = selected_row.get_children()[0]
label_name = label_box.get_children()[2].get_text()
label_color = label_box.get_children()[1].get_rgba().to_string()
label = Label(label_name, label_color)
new_label = copy(label)
self._dialog = editor = LabelEditor(new_label)
reply = editor.edit(self.__main_win.window)
if reply != "ok":
def do(self):
SimpleAction.do(self)
if os.name == 'nt':
os.startfile(self.__main_win.doc.path)
return
Gtk.show_uri(
self.__main_win.window.get_window().get_screen(),
GLib.filename_to_uri(self.__main_win.doc.path),
Gdk.CURRENT_TIME
)
def do(self):
SimpleAction.do(self)
self.__main_win.window.destroy()
def do(self):
SimpleAction.do(self)
selection = self.__dialog.lists['docs']['gui'].get_selection()
if selection is None:
logger.warning("No doc selected")
return
(model, selection_iter) = selection.get_selected()
if selection_iter is None:
logger.warning("No doc selected")
return
val = model.get_value(selection_iter, 5)
self.__dialog.removeDocButton.set_sensitive(val)
def do(self):
SimpleAction.do(self)
self.__main_win.refresh_boxes()
def do(self):
SimpleAction.do(self)
self.__main_win.set_layout('paged')
def do(self):
SimpleAction.do(self)
self.__main_win.refresh_doc_list()
if self.__refresh_pages:
self.__main_win.refresh_boxes()