def __init__(self, data_type=None): self._block_changed = False self._has_been_updated = False KiwiEntry.__init__(self) ValidatableProxyWidgetMixin.__init__(self) self._data_type = data_type # Hide currency symbol from the entry. self.set_options_for_datatype(currency, symbol=False)
def __init__(self, data_type=None): self._block_changed = False self._has_been_updated = False KiwiEntry.__init__(self) ValidatableProxyWidgetMixin.__init__(self) self._entry_data_type = data_type # XXX: Sales -> New Loan Item requires this, figure out why try: self.props.data_type = data_type except (AttributeError, TypeError): pass # Hide currency symbol from the entry. self.set_options_for_datatype(currency, symbol=False)
def __init__(self, data_type=None): self._block_changed = False self._has_been_updated = False KiwiEntry.__init__(self) ValidatableProxyWidgetMixin.__init__(self) self._set_data_type(data_type) # Hide currency symbol from the entry. self.set_options_for_datatype(currency, symbol=False) # This used to be an override, but after the gtk3 migration if we # use the override or create a do_changed method GObject will break # the object in a way that it will be considered a Gtk.SpinButton # directly instead of a ProxySpinButton. The side effect of that # would be that out custom events (e.g. validate) would not exist. self.connect('changed', self._on_changed)