示例#1
0
 def __init__(self, model_attributes, current_callback):
     Tree.__init__(self)
     self.set_property('markup-format-string', '%(__model_markup__)s')
     BaseMultiModelObserver.__init__(self, model_attributes,
                                     current_callback)
     self._current = None
     self.connect('clicked', self.cb_clicked)
示例#2
0
 def __init__(self, model_attributes, current_callback):
     Tree.__init__(self)
     self.set_property('markup-format-string', '%(__model_markup__)s')
     BaseMultiModelObserver.__init__(self, model_attributes,
                                     current_callback)
     self._current = None
     self.connect('clicked', self.cb_clicked)
示例#3
0
 def __init__(self, model_attributes, current_callback):
     self._store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_PYOBJECT)
     self._cell = gtk.CellRendererText()
     gtk.ComboBox.__init__(self, self._store)
     self.pack_start(self._cell, True)
     self.add_attribute(self._cell, 'text', 0)
     BaseMultiModelObserver.__init__(self, model_attributes,
                                     current_callback)
     self._current = None
     self.connect('changed', self.cb_clicked)
示例#4
0
 def __init__(self, model_attributes, current_callback):
     self._store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_PYOBJECT)
     self._cell = gtk.CellRendererText()
     gtk.ComboBox.__init__(self, self._store)
     self.pack_start(self._cell, True)
     self.add_attribute(self._cell, 'text', 0)
     BaseMultiModelObserver.__init__(self, model_attributes,
                                     current_callback)
     self._current = None
     self.connect('changed', self.cb_clicked)