def __init__(self, model=None, text_column=-1): deprecationwarn( 'ComboBoxEntry is deprecated, use ComboEntry instead', stacklevel=3) gtk.ComboBox.__init__(self) self.entry = KiwiEntry() # HACK: We need to set a private variable, this seems to # be the only way of doing so self.entry.start_editing(gtk.gdk.Event(gtk.gdk.BUTTON_PRESS)) self.add(self.entry) self.entry.show() self._text_renderer = gtk.CellRendererText() self.pack_start(self._text_renderer, True) self.set_active(-1) self.entry_changed_id = self.entry.connect('changed', self._on_entry__changed) self._active_changed_id = self.connect("changed", self._on_entry__active_changed) self._has_frame_changed(None) self.connect("notify::has-frame", self._has_frame_changed) if not model: model = gtk.ListStore(str) text_column = 0 self.set_model(model) self.set_text_column(text_column)
def __init__(self, columns=[], instance_list=None, mode=gtk.SELECTION_BROWSE): deprecationwarn('List is deprecated, use ObjectList instead', stacklevel=3) ObjectList.__init__(self, columns, instance_list, mode)
def __init__(self, **kwargs): deprecationwarn( 'ProxyComboBoxEntry is deprecated, use ProxyComboEntry instead', stacklevel=3) BaseComboBoxEntry.__init__(self) ValidatableProxyWidgetMixin.__init__(self, widget=self.entry) # We need to create the helper before PropertyObject, since we # need to access the helper in prop_set_list_editable, which # PropertyObject might call self._helper = _EasyComboBoxHelper(self) PropertyObject.__init__(self, **kwargs) self.set_text_column(ComboColumn.LABEL) # here we connect the expose-event signal directly to the entry self.child.connect('changed', self._on_child_entry__changed) # HACK! we force a queue_draw because when the window is first # displayed the icon is not drawn. gobject.idle_add(self.queue_draw) self.set_events(gtk.gdk.KEY_RELEASE_MASK) self.connect("key-release-event", self._on__key_release_event)
def __init__(self, columns=[], instance_list=None, mode=gtk.SELECTION_BROWSE): deprecationwarn( 'List is deprecated, use ObjectList instead', stacklevel=3) ObjectList.__init__(self, columns, instance_list, mode)
def __init__(self, model=None, text_column=-1): deprecationwarn('ComboBoxEntry is deprecated, use ComboEntry instead', stacklevel=3) gtk.ComboBox.__init__(self) self.entry = KiwiEntry() # HACK: We need to set a private variable, this seems to # be the only way of doing so self.entry.start_editing(gtk.gdk.Event(gtk.gdk.BUTTON_PRESS)) self.add(self.entry) self.entry.show() self._text_renderer = gtk.CellRendererText() self.pack_start(self._text_renderer, True) self.set_active(-1) self.entry_changed_id = self.entry.connect('changed', self._on_entry__changed) self._active_changed_id = self.connect("changed", self._on_entry__active_changed) self._has_frame_changed(None) self.connect("notify::has-frame", self._has_frame_changed) if not model: model = gtk.ListStore(str) text_column = 0 self.set_model(model) self.set_text_column(text_column)
def __init__(self, toplevel=None, widgets=(), gladefile=None, toplevel_name=None, keyactions=None): """ The keyactions parameter is sent to :class:`kiwi.controllers.BaseController`, the rest are sent to :class:`kiwi.ui.views.SlaveView` """ if gladefile: deprecationwarn("gladefile is deprecated in Delegate, " "use GladeSlaveDelegate instead", stacklevel=3) SlaveView.__init__(self, toplevel, widgets, gladefile, toplevel_name) BaseController.__init__(self, view=self, keyactions=keyactions)
def __init__(self, toplevel=None, widgets=(), gladefile=None, toplevel_name=None, keyactions=None): """ The keyactions parameter is sent to L{kiwi.controllers.BaseController}, the rest are sent to L{kiwi.ui.views.SlaveView} """ if gladefile: deprecationwarn( 'gladefile is deprecated in Delegate, ' 'use GladeSlaveDelegate instead', stacklevel=3) SlaveView.__init__(self, toplevel, widgets, gladefile, toplevel_name) BaseController.__init__(self, view=self, keyactions=keyactions)
def __init__(self, toplevel=None, widgets=(), gladefile=None, toplevel_name=None, delete_handler=None, keyactions=None): """Creates a new Delegate. The keyactions parameter is sent to L{kiwi.controllers.BaseController}, the rest are sent to L{kiwi.ui.views.BaseView} """ if gladefile: deprecationwarn( 'gladefile is deprecated in Delegate, ' 'use GladeDelegate instead', stacklevel=3) BaseView.__init__(self, toplevel=toplevel, widgets=widgets, gladefile=gladefile, toplevel_name=toplevel_name, delete_handler=delete_handler) BaseController.__init__(self, view=self, keyactions=keyactions)
def __init__(self, **kwargs): deprecationwarn( 'ProxyComboBoxEntry is deprecated, use ProxyComboEntry instead', stacklevel=3) BaseComboBoxEntry.__init__(self) ValidatableProxyWidgetMixin.__init__(self, widget=self.entry) self._helper = _EasyComboBoxHelper(self) for key, value in kwargs.items(): setattr(self.props, key, value) self.set_text_column(ComboColumn.LABEL) # here we connect the expose-event signal directly to the entry self.child.connect('changed', self._on_child_entry__changed) # HACK! we force a queue_draw because when the window is first # displayed the icon is not drawn. gobject.idle_add(self.queue_draw) self.set_events(gtk.gdk.KEY_RELEASE_MASK) self.connect("key-release-event", self._on__key_release_event)
def __init__(self): deprecationwarn( 'CheckButton is deprecated, use ProxyCheckButton instead', stacklevel=3) ProxyCheckButton.__init__(self)
def __init__(self): deprecationwarn('TextView is deprecated, use ProxyTextView instead', stacklevel=3) ProxyTextView.__init__(self)
def __init__(self, data_type=None): deprecationwarn('Entry is deprecated, use ProxyEntry instead', stacklevel=3) ProxyEntry.__init__(self, data_type)
def __init__(self, label='', data_type=None): deprecationwarn( 'Label is deprecated, use ProxyLabel instead', stacklevel=3) ProxyLabel.__init__(self, label=label, data_type=data_type)
def __init__(self): deprecationwarn( 'TextView is deprecated, use ProxyTextView instead', stacklevel=3) ProxyTextView.__init__(self)
def __init__(self, label='', data_type=None): deprecationwarn('Label is deprecated, use ProxyLabel instead', stacklevel=3) ProxyLabel.__init__(self, label=label, data_type=data_type)
def __init__(self): deprecationwarn("SpinButton is deprecated, use ProxySpinButton instead", stacklevel=3) ProxySpinButton.__init__(self)