Exemplo n.º 1
0
 def _updateModels(self):
     '''
     Refreshes the models tree.
     '''
     self._modelsTree.clear()
     for name, path in location.getModels().iteritems():
         QtGui.QTreeWidgetItem(self._modelsTree, [name, path])
     self._modelsTree.resizeColumnToContents(0)
     self._modelsTree.resizeColumnToContents(1)
Exemplo n.º 2
0
 def _updateModels(self):
     '''
     Refreshes the models tree.
     '''
     self._modelsTree.clear()
     for name, path in location.getModels().iteritems():
         QtGui.QTreeWidgetItem(self._modelsTree, [name, path])
     self._modelsTree.resizeColumnToContents(0)
     self._modelsTree.resizeColumnToContents(1)
Exemplo n.º 3
0
 def testGetModels(self):
     location.add(_LOCATION_DIR)
     mdls = location.getModels()
     self.failUnless("model1" in mdls)
     self.failUnless("model2" in mdls)
Exemplo n.º 4
0
 def testGetModels(self):
     location.add(_LOCATION_DIR)
     mdls = location.getModels()
     self.failUnless("model1" in mdls)
     self.failUnless("model2" in mdls)