Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _init_dialog(self, parent):
"""Initialize the dialog."""
self.add_button(_("Close _Without Saving"), Gtk.ResponseType.NO)
self.add_button(_("_Cancel"), Gtk.ResponseType.CANCEL)
self.add_button(_("_Save"), Gtk.ResponseType.YES)
self.set_default_response(Gtk.ResponseType.YES)
self.set_transient_for(parent)
self.set_modal(True)
aeidon.util.connect(self, self, "response")
def _init_signal_handlers(self):
"""Initialize signal handlers."""
aeidon.util.connect(self, self, "delete-event")
def _init_signal_handlers(self):
"""Initialize signal handlers."""
aeidon.util.connect(self, self, "apply")
aeidon.util.connect(self, self, "cancel")
aeidon.util.connect(self, self, "close")
aeidon.util.connect(self, self, "prepare")
aeidon.util.connect(self, self, "window-state-event")
def _init_signal_handlers(self):
"""Initialize signal handlers."""
aeidon.util.connect(self, "application", "page-added")
aeidon.util.connect(self, "application", "page-closed")
aeidon.util.connect(self, "application", "page-switched")
aeidon.util.connect(self, "_search_entry", "changed")
aeidon.util.connect(self, "_tree_view", "key-press-event")
def __init__(self, format="{:.3f}"):
"""Initialize a :class:`FloatCellRenderer` instance."""
GObject.GObject.__init__(self)
self._format = format
aeidon.util.connect(self, self, "notify::text")
aeidon.util.connect(self, self, "edited")
aeidon.util.connect(self, self, "editing-started")
def _init_signal_handlers(self):
"""Initialize signal handlers."""
aeidon.util.connect(self, self, "apply")
aeidon.util.connect(self, self, "cancel")
aeidon.util.connect(self, self, "close")
aeidon.util.connect(self, self, "prepare")
aeidon.util.connect(self, self, "window-state-event")
def _init_signal_handlers_for_data(self):
"""Initialize signal handlers for project data updates."""
aeidon.util.connect(self, "project", "main-file-opened")
aeidon.util.connect(self, "project", "main-texts-changed")
aeidon.util.connect(self, "project", "positions-changed")
aeidon.util.connect(self, "project", "subtitles-changed")
aeidon.util.connect(self, "project", "subtitles-inserted")
aeidon.util.connect(self, "project", "subtitles-removed")
aeidon.util.connect(self, "project", "translation-file-opened")
aeidon.util.connect(self, "project", "translation-texts-changed")
def __init__(self, master):
"""Initialize a :class:`RegisterAgent` instance."""
aeidon.Delegate.__init__(self, master)
self._do_description = None
aeidon.util.connect(self, self, "notify::undo_limit")