def __init__(self, conobj, attr): BaseFormWidget.__init__(self, conobj, attr) self._widget = gtk.Entry() self._widget.connect('changed', self._entry_changed_callback) self._widget.set_width_chars(40) self.add(self._widget)
def __init__(self, conobj, attr): BaseFormWidget.__init__(self, conobj, attr) self._widget = gtk.CheckButton() self.add(self._widget) self._widget.connect('toggled', self._toggled_callback)
def __init__(self, conobj, attr): BaseFormWidget.__init__(self, conobj, attr) self._widget = StringListWidget(self._start_value) self._widget.connect('changed', self._changed_callback) self.add(self._widget)
def __init__(self, conobj, attr): BaseFormWidget.__init__(self, conobj, attr) definition = self._conobj.get_attribute_definition(attr) self._widget = IntegerListWidget(definition['min'], definition['max'], self._start_value) self._widget.connect('changed', self._changed_callback) self.add(self._widget)