Exemple #1
0
 def testExample(self):
     logging.debug(self.__class__.__name__ +': testExample()')
     self.app = QApplication(sys.argv)
     self.window = QMainWindow()
     self.app.setActiveWindow(self.window)
     self._boxContentDialog=BoxContentDialog(self.window)
     self._boxContentDialog.addButton("&label","str(object.label)")
     self.app.connect(self._boxContentDialog, SIGNAL("scriptChanged"), self.scriptChanged)
     self._boxContentDialog.onScreen()
     if not hasattr(unittest,"NO_GUI_TEST"):
         self.app.exec_()
Exemple #2
0
    def __init__(self, plugin):
        logging.debug(__name__ + ": __init__")
        TabController.__init__(self, plugin)

        self._dataAccessor = None

        self.setFindEnabled()
        self._findAlgorithm = None
        self._findDialog = None
        self._filterAlgoritm = None
        self._filterDialog = None
        self._filterObjects = None
        self._boxContentDialog = BoxContentDialog(
            self.plugin().application().mainWindow())
        self.connect(self._boxContentDialog, SIGNAL("scriptChanged"),
                     self.scriptChanged)