コード例 #1
0
 def __init__(self, application=None, name=None):
     logging.debug(__name__ + ": __init__")
     BrowserPlugin.__init__(self, application)
     self.registerFiletypesFromTabController(ConfigEditorTabController)
     self.addNewFileAction("New configuration file", self.newFile)
     self.application().commandLineParser().add_option(
         "-s", "--saveimage", dest="saveimage", help="save center view to image FILE", metavar="FILE"
     )
コード例 #2
0
 def __init__(self, application=None, name=None):
     logging.debug(__name__ + ": __init__")
     BrowserPlugin.__init__(self, application)
     self.registerFiletypesFromTabController(ConfigEditorTabController)
     self.addNewFileAction("New configuration file", self.newFile)
     self.application().commandLineParser().add_option(
         "-s",
         "--saveimage",
         dest="saveimage",
         help="save center view to image FILE",
         metavar="FILE")
コード例 #3
0
ファイル: testBrowser.py プロジェクト: UVa-IHEP/cmg-cmssw
 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()
コード例 #4
0
ファイル: testBrowser.py プロジェクト: Andrej-CMS/cmssw
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()
コード例 #5
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self._fillEventNavigatorMenu()
コード例 #6
0
 def __init__(self, application=None):
     logging.debug(__name__ + ": __init__")
     BrowserPlugin.__init__(self, application)
コード例 #7
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self._fillEventNavigatorMenu()
コード例 #8
0
 def __init__(self, application=None):
     logging.debug(__name__ + ": __init__")
     BrowserPlugin.__init__(self, application)
コード例 #9
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self.addCenterView(NoneView)
     self.addCenterView(ConnectionStructureView,True)
     self.addCenterView(SequenceStructureView)
コード例 #10
0
 def startUp(self):
     BrowserPlugin.startUp(self)
     self.addCenterView(NoneView)
     self.addCenterView(ConnectionStructureView, True)
     self.addCenterView(SequenceStructureView)