def __init__(self, cParent):
        self.cParent = dummy_parent.DummyParent(cParent) if not hasattr(cParent,'Config') else cParent
        self.App = self.cParent.App
        self.Config = self.cParent.Config
        self.Common = self.cParent.Common

        self._dlib =  lnpLib.LNPLib() if 0 else None
    def __init__(self, cParent, dlgConfigObj = None):
        #Default
        QtGui.QDialog.__init__(self)
        self.setupUi(self)
        self.sigConnection()
        self.dlgConfig = CustomDialogConfigure() if not dlgConfigObj else dlgConfigObj

        #Custom
        self.cParent = dummy_parent.DummyParent(cParent) if not hasattr(cParent,'Config') else cParent
        self.App = self.cParent.App
        self.Config = self.cParent.Config
        self.Common = self.cParent.Common
        self.qtsCommon = qt_common.PyQtAppSupport(self, self.Config.AppInfo.IconPath)
        self.qtsList = list_box.List(self)
示例#3
0
    def __init__(self, cParent):
        self.cParent = dummy_parent.DummyParent(cParent) if not hasattr(
            cParent, 'Config') else cParent
        self.App = self.cParent.App
        self.Config = self.cParent.Config
        self.Common = self.cParent.Common

        QtGui.QMainWindow.__init__(self)
        self.setupUi(self)
        self.qtsCommon = qt_common.PyQtAppSupport(
            self, iconPath=self.Config.AppInfo.IconPath)
        self.qtsTree = tree_simple.TreeSimple(self)
        self.qtsTable = table.Table(self)
        self.qtsOverride = override.Override(self)

        self.uiInitalize()
        self.uiConnections()
        self.uiDesign()
示例#4
0
    def __init__(self, cParent):
        self.cParent = dummy_parent.DummyParent(cParent) if not hasattr(
            cParent, 'Config') else cParent
        self.App = self.cParent.App
        self.Config = self.cParent.Config
        self.Common = self.cParent.Common

        #Instance
        self.ui = lnp_ui_handle.LightNPrayUI(self)
        redirectPrint = 0 if self.Common.devmode else 1
        redirectErrors = 0 if self.Common.devmode else 1
        self.dev = DevConsolePlug.DevConsole(self.ui,
                                             ShowPrint=redirectPrint,
                                             ShowError=redirectErrors,
                                             StatusBar=self.ui.statusbar,
                                             AsDock=True)
        self.qtsCommon = qt_common.PyQtAppSupport(self.ui)
        self.qtsTree = tree_simple.TreeSimple(self.ui)
        self.qtsTable = table.Table(self.ui)
        self.qtsOverride = override.Override(self.ui)
        self.data = lighting_pass_uidata.exLightPassData(self)
        self.lightPassSel = PassDefSelections()
        self.ui.__class__.closeEvent = self.__littleHouseKeeping