Esempio n. 1
0
    def __clearWindowProperties(self):
        """ Clears the windowPrc file that was created in a previous
        call to setupWindow(), if any. """

        if self.windowPrc:
            unloadPrcFile(self.windowPrc)
            self.windowPrc = None
        WindowProperties.clearDefault()
Esempio n. 2
0
    def __clearWindowProperties(self):
        """ Clears the windowPrc file that was created in a previous
        call to setupWindow(), if any. """

        if self.windowPrc:
            unloadPrcFile(self.windowPrc)
            self.windowPrc = None
        WindowProperties.clearDefault()
Esempio n. 3
0
def medit():
    print("medit")
    # win = app.base.openWindow()
    wp = WindowProperties()
    wp.clearDefault()
    wp.setSize(500, 500)
    wp.setOrigin(512, 128)
    wp.setTitle("Editor de Materiales")

    win: GraphicsWindow = app.base.win
    h = win.getWindowHandle()

    # wp.setParentWindow(h)
    wp.setZOrder(WindowProperties.Z_top)
    print(wp.getUndecorated())

    medit_win = app.base.openWindow(props=wp, aspectRatio=1)

    task = Task(medit_focus_task)

    app.base.task_mgr.add(task, "medit_focus_task", extraArgs=[task, medit_win])