Пример #1
0
 def __init__ (self):
     self.loader = plugin_loader.get_master_loader()
     self.window = gtk.Dialog()
     self.notebook = gtk.Notebook()
     for cat,plugins in self.categorize_plugins().items():
         #self.make_treeview(self.loader.active_plugin_sets)
         plugin_view = self.make_treeview(plugins)
         lab = gtk.Label(cat); lab.show()
         self.notebook.append_page(plugin_view,lab)
         plugin_view.show_all()
     self.add_labels()
     self.window.vbox.add(self.notebook); self.notebook.show()
     self.window.add_buttons(
         #gtk.STOCK_ABOUT,1
         gtk.STOCK_CLOSE,gtk.RESPONSE_CLOSE
         )
     self.window.set_default_size(375,400)
     self.window.connect('response',self.response_cb)
Пример #2
0
 def __init__(self):
     self.loader = plugin_loader.get_master_loader()
     self.window = gtk.Dialog()
     self.notebook = gtk.Notebook()
     for cat, plugins in self.categorize_plugins().items():
         #self.make_treeview(self.loader.active_plugin_sets)
         plugin_view = self.make_treeview(plugins)
         lab = gtk.Label(cat)
         lab.show()
         self.notebook.append_page(plugin_view, lab)
         plugin_view.show_all()
     self.add_labels()
     self.window.vbox.add(self.notebook)
     self.notebook.show()
     self.window.add_buttons(
         #gtk.STOCK_ABOUT,1
         gtk.STOCK_CLOSE,
         gtk.RESPONSE_CLOSE)
     self.window.set_default_size(375, 400)
     self.window.connect('response', self.response_cb)
Пример #3
0
 def testAvailablePlugins (self):
     ml = get_master_loader()
     for st in ml.available_plugin_sets:
         if st not in ml.active_plugins:
             ml.activate_plugin_set(st)
Пример #4
0
 def testDefaultPlugins (self):
     ml = get_master_loader()
     ml.load_active_plugins()
     print 'active:',ml.active_plugins
     print 'instantiated:',ml.instantiated_plugins
     assert(not ml.errors)
Пример #5
0
 def testAvailablePlugins(self):
     ml = get_master_loader()
     for st in ml.available_plugin_sets:
         if st not in ml.active_plugins:
             ml.activate_plugin_set(st)
Пример #6
0
 def testDefaultPlugins(self):
     ml = get_master_loader()
     ml.load_active_plugins()
     print 'active:', ml.active_plugins
     print 'instantiated:', ml.instantiated_plugins
     assert (not ml.errors)