def __init__(self, parent, application): """Initialize a :class:`TimeTransformDialog` object.""" PositionTransformDialog.__init__(self, parent, application) self._output_entry_1 = gaupol.TimeEntry() self._output_entry_2 = gaupol.TimeEntry() self._init_widgets() self._init_values()
def do_start_editing(self, event, widget, path, bg_area, cell_area, flags): """Initialize and return a :class:`gaupol.TimeEntry` widget.""" editor = gaupol.TimeEntry() gaupol.style.use_font(editor, "custom") editor.set_has_frame(False) editor.set_alignment(self.props.xalign) editor.set_text(self.props.text) editor.select_region(0, -1) editor.gaupol_path = path editor.connect("focus-out-event", self._on_editor_focus_out_event) editor.connect("key-press-event", self._on_editor_key_press_event) editor.connect("populate-popup", self._on_editor_populate_popup) editor.show() return editor
def setup_method(self, method): self.entry = gaupol.TimeEntry()