def setUpClass(cls): TestBase.setUpLogging() TestCreateOglInterfaceCommand.clsLogger = getLogger(__name__) PyutPreferences.determinePreferencesLocation() TestCreateOglInterfaceCommand.clsApp = App()
def OnInit(self): PyutPreferences.determinePreferencesLocation() frameTop: Frame = Frame(parent=None, id=TestMiniOglApp.FRAME_ID, title="Test miniogl", size=(TestMiniOglApp.WINDOW_WIDTH, TestMiniOglApp.WINDOW_HEIGHT), style=DEFAULT_FRAME_STYLE) frameTop.Show(True) diagramFrame: DiagramFrame = DiagramFrame(frameTop) diagramFrame.SetSize( (TestMiniOglApp.WINDOW_WIDTH, TestMiniOglApp.WINDOW_HEIGHT)) diagramFrame.SetScrollbars(10, 10, 100, 100) button = Button(frameTop, 1003, "Draw Me") button.SetPosition((15, 15)) self.Bind(EVT_BUTTON, self.onDrawMe, button) diagramFrame.Show(True) self.SetTopWindow(diagramFrame) self._diagramFrame: DiagramFrame = diagramFrame self.initTest() return True
def setUp(self): self.logger: Logger = TestIoPython.clsLogger self.pyutToPython: PyutToPython = PyutToPython() # # Ugh -- need this called because PyutMethod instantiates the singleton # PyutPreferences.determinePreferencesLocation()
def OnInit(self): PyutPreferences.determinePreferencesLocation() TestBase.setUpLogging() frameTop: Frame = Frame(parent=None, id=ID_ANY, title="Test Gridded Diagram", size=(WINDOW_WIDTH, WINDOW_HEIGHT), style=DEFAULT_FRAME_STYLE) diagramFrame: DiagramFrame = DiagramFrame(frameTop) diagramFrame.SetSize((WINDOW_WIDTH, WINDOW_HEIGHT)) diagramFrame.SetScrollbars(10, 10, 100, 100) frameTop.SetAutoLayout(True) mainSizer: BoxSizer = BoxSizer(orient=VERTICAL) mainSizer.Add(diagramFrame, 1, EXPAND | BOTTOM, 10) frameTop.SetSizer(mainSizer) mainSizer.Fit(frameTop) frameTop.SetDropTarget(PyutFileDropTarget()) frameTop.Show(True) return True
def setUpClass(cls): TestBase.setUpLogging() TestDeleteOglLinkedObjectCommand.clsLogger = getLogger(__name__) PyutPreferences.determinePreferencesLocation() TestDeleteOglLinkedObjectCommand.clsApp = App()
def setUpClass(cls): PyutPreferences.determinePreferencesLocation( ) # Side effect; not a good move cls.clsApp = PyUtApp() # Create frame baseFrame: Frame = Frame(None, ID_ANY, "", size=(10, 10)) # noinspection PyTypeChecker umlFrame = UmlFrame(baseFrame, None) umlFrame.Show(True) cls.clsFrame = umlFrame
def __init__(self): self._setupSystemLogging() self.logger: Logger = getLogger(__name__) PyutPreferences.determinePreferencesLocation() # Lang.importLanguage() self._exePath: str = self._getExePath() self._userPath: str = getcwd() # where the user launched pyut from PyutUtils.setBasePath(self._exePath) self._cmdLineArgsHandled: bool = False """ If `True` then we handled some command line arguments that do not require the full startup of Pyut. Examples of this are `--help` or `--version`. TODO: Perhaps rename this to `_startupUI` or `_fullStartup` or `_startUI` """ self.handleCommandLineArguments()
def OnInit(self): PyutPreferences.determinePreferencesLocation() frameTop: Frame = Frame(parent=None, id=TestToolboxFrame.FRAME_ID, title="Test Toolbox Version 2", size=(TestToolboxFrame.WINDOW_WIDTH, TestToolboxFrame.WINDOW_HEIGHT), style=DEFAULT_FRAME_STYLE) frameTop.Show(True) TestBase.setUpLogging() self.logger: Logger = getLogger(__name__) diagramFrame: DiagramFrame = DiagramFrame(frameTop) diagramFrame.SetSize( (TestToolboxFrame.WINDOW_WIDTH, TestToolboxFrame.WINDOW_HEIGHT)) diagramFrame.SetScrollbars(10, 10, 100, 100) diagramFrame.Show(True) self.SetTopWindow(diagramFrame) self._diagramFrame: DiagramFrame = diagramFrame self._mediator: Mediator = Mediator() self._mediator.registerAppFrame(frameTop) self._toolIconOwner: ToolIconOwner = ToolIconOwner() self._toolIconOwner.initializeIcons() frameTop.Bind(EVT_CLOSE, self.__onCloseFrame) self.initTest() return True
def setUpClass(cls): TestBase.setUpLogging() TestOglUtils.clsLogger = getLogger(__name__) PyutPreferences.determinePreferencesLocation()
def setUpClass(cls): TestBase.setUpLogging() TestSemanticVersion.clsLogger = getLogger(__name__) PyutPreferences.determinePreferencesLocation()
def setUp(self): self.logger: Logger = TestOglLink.clsLogger PyutPreferences.determinePreferencesLocation()
def setUpClass(cls): TestBase.setUpLogging() TestRectangleShape.clsLogger = getLogger(__name__) PyutPreferences.determinePreferencesLocation()
def setUpClass(cls): TestBase.setUpLogging() TestMiniDomToOglV10.clsLogger = getLogger(__name__) PyutPreferences.determinePreferencesLocation()
def setUpClass(cls): TestBase.setUpLogging() TestIDFactory.clsLogger = getLogger(__name__) PyutPreferences.determinePreferencesLocation() TestIDFactory.clsApp = App()
def setUpClass(cls): TestBase.setUpLogging() TestMethodInformation.clsLogger = getLogger(__name__) PyutPreferences.determinePreferencesLocation()
def setUpClass(cls): PyutPreferences.determinePreferencesLocation() TestBase.setUpLogging() TestOglInterface2.clsLogger = getLogger(__name__) TestOglInterface2.clsApp = App()