def testBrowser(self): logging.debug(self.__class__.__name__ +': testRun()') self.app=Application(sys.argv) self.app.mainWindow().setWindowTitle("test Browser") self.plugin=BrowserPlugin(self.app) self.plugin.startUp() self.tab = BrowserTab(self.app.mainWindow()) self.controller = BrowserTabController(self.plugin) self.controller.setDataAccessor(TestDataAccessor()) self.tab.setController(self.controller) self.app.mainWindow().addTab(self.tab) self.controller.updateContent() self.controller.updateViewMenu() if not hasattr(unittest,"NO_GUI_TEST"): self.app.run()
class BrowserTestCase(unittest.TestCase): def testBrowser(self): logging.debug(self.__class__.__name__ +': testRun()') self.app=Application(sys.argv) self.app.mainWindow().setWindowTitle("test Browser") self.plugin=BrowserPlugin(self.app) self.plugin.startUp() self.tab = BrowserTab(self.app.mainWindow()) self.controller = BrowserTabController(self.plugin) self.controller.setDataAccessor(TestDataAccessor()) self.tab.setController(self.controller) self.app.mainWindow().addTab(self.tab) self.controller.updateContent() self.controller.updateViewMenu() if not hasattr(unittest,"NO_GUI_TEST"): self.app.run()
def __init__(self, parent): BrowserTab.__init__(self, parent)
def __init__(self, parent=None): """ constructor """ logging.debug(self.__class__.__name__ + ": __init__()") BrowserTab.__init__(self, parent, True) self._editorSplitter = None
def __init__(self, parent=None): """ constructor """ logging.debug(self.__class__.__name__ +": __init__()") BrowserTab.__init__(self, parent,True) self._editorSplitter = None