示例#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))
示例#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))
示例#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))
示例#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()))
示例#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()))