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))
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))
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))
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()))