Exemplo n.º 1
0
 def run(self):
     """Starts a new event loop with this object as the main program.
     Note: might not return, in the case of GLUT.
     """
     import visualization
     visualization.setWindowTitle(self.name)
     visualization.run(self)
Exemplo n.º 2
0
 def run(self):
     """Starts a new event loop with this object as the main program.
     Note: might not return, in the case of GLUT.
     """
     import visualization
     visualization.setWindowTitle(self.name)
     visualization.run(self)
Exemplo n.º 3
0
    def _launch(editorObject):
        olditems = visualization._vis.items.copy()
        visualization._vis.items = {}

        oldtitle = visualization.getWindowTitle()
        visualization.setWindowTitle("Resource Editor")
        res,retVal = visualization.customRun(_makeDialog,args=(editorObject,))
        visualization.setWindowTitle(oldtitle)

        visualization._vis.items = olditems
        return res,retVal
Exemplo n.º 4
0
    def _launch(editorObject):
        global _dialog
        olditems = visualization._vis.items.copy()
        visualization._vis.items = {}

        oldtitle = visualization.getWindowTitle()
        visualization.setWindowTitle("Resource Editor")
        res,retVal = visualization.customRun(_makeDialog,args=(editorObject,))
        visualization.setWindowTitle(oldtitle)

        if _dialog.doexit:
            visualization.kill()
            print "Exiting program."
            exit(0)


        visualization._vis.items = olditems
        return res,retVal
Exemplo n.º 5
0
    def _launch(editorObject):
        global _dialog
        olditems = visualization._vis.items.copy()
        visualization._vis.items = {}

        oldtitle = visualization.getWindowTitle()
        visualization.setWindowTitle("Resource Editor")
        res, retVal = visualization.customRun(_makeDialog,
                                              args=(editorObject, ))
        visualization.setWindowTitle(oldtitle)

        if _dialog.doexit:
            visualization.kill()
            print "Exiting program."
            exit(0)

        visualization._vis.items = olditems
        return res, retVal