Beispiel #1
0
 def loadUIFile(self, filename):
     for path in [BlissFramework.getStdBricksPath()
                  ] + BlissFramework.getCustomBricksDirs():
         # modulePath = sys.modules[self.__class__.__module__].__file__
         # path = os.path.dirname(modulePath)
         if os.path.exists(os.path.join(path, filename)):
             return qtui.QWidgetFactory.create(os.path.join(path, filename))
Beispiel #2
0
 def loadUIFile(self, filename):
     for path in [
         BlissFramework.getStdBricksPath()
     ] + BlissFramework.getCustomBricksDirs():
         # modulePath = sys.modules[self.__class__.__module__].__file__
         # path = os.path.dirname(modulePath)
         if os.path.exists(os.path.join(path, filename)):
             return qtui.QWidgetFactory.create(os.path.join(path, filename))
Beispiel #3
0
 def loadUIFile(self, filename):
     """
     Descript. :
     """
     for path in [BlissFramework.getStdBricksPath()] + \
                  BlissFramework.getCustomBricksDirs():
         if os.path.exists(os.path.join(path, filename)):
             return qtui.QWidgetFactory.create(os.path.join(path, filename))
Beispiel #4
0
 def refresh(self):
     """Refresh bricks window"""
     while self.bricksToolbox.currentItem():
         self.bricksToolbox.removeItem(self.bricksToolbox.currentItem())
    
     self.bricks = {}
     self.bricksTab = {}
         
     self.addBrickTab("General")
     # bricks without category fall into 'General'
     self.bricksTab[""] = self.bricksTab["General"]
    
     map(self.addBricks, (BlissFramework.getStdBricksPath(), ) + tuple(BlissFramework.getCustomBricksDirs()))
Beispiel #5
0
 def refresh(self):
     """Refresh bricks window"""
     while self.bricksToolbox.currentItem():
         self.bricksToolbox.removeItem(self.bricksToolbox.currentItem())
    
     self.bricks = {}
     self.bricksTab = {}
         
     self.addBrickTab("General")
     # bricks without category fall into 'General'
     self.bricksTab[""] = self.bricksTab["General"]
    
     map(self.addBricks, (BlissFramework.getStdBricksPath(), ) + tuple(BlissFramework.getCustomBricksDirs()))