def getWindow(self):
     returnValue = libpanda._inPO9cYz_Xk(self.this)
     import GraphicsWindow
     returnObject = GraphicsWindow.GraphicsWindow(None)
     returnObject.this = returnValue
     if returnObject.this == 0:
         return None
     return returnObject.setPointer()
     return
Beispiel #2
0
 def getWin(self):
     returnValue = libpanda._inPfYohR8JL(self.this)
     import GraphicsWindow
     returnObject = GraphicsWindow.GraphicsWindow(None)
     returnObject.this = returnValue
     if returnObject.this == 0:
         return None
     returnObject.userManagesMemory = 1
     return returnObject.setPointer()
     return
Beispiel #3
0
def downcastToGraphicsWindowFromClearableRegion(this):
    returnValue = libpanda._inPO9cYbYRC(this.this)
    import GraphicsWindow
    returnObject = GraphicsWindow.GraphicsWindow(None)
    returnObject.this = returnValue
    if returnObject.this == 0:
        return None
    returnObject.userManagesMemory = 1
    return returnObject
    return
 def __overloaded_makeWindow_ptrGraphicsEngine_ptrGraphicsPipe_ptrGraphicsStateGuardian(
         self, pipe, gsg):
     returnValue = libpanda._inPO9cY57Hy(self.this, pipe.this, gsg.this)
     import GraphicsWindow
     returnObject = GraphicsWindow.GraphicsWindow(None)
     returnObject.this = returnValue
     if returnObject.this == 0:
         return None
     returnObject.userManagesMemory = 1
     return returnObject.setPointer()
     return
Beispiel #5
0
    def _GraphicsEngine__overloaded_makeWindow_ptrGraphicsEngine_ptrGraphicsPipe_ptrGraphicsStateGuardian_ptrConstGraphicsThreadingModel(
            self, pipe, gsg, threadingModel):
        returnValue = libpanda._inPO9cYTOlP(self.this, pipe.this, gsg.this,
                                            threadingModel.this)
        import GraphicsWindow
        returnObject = GraphicsWindow.GraphicsWindow(None)
        returnObject.this = returnValue
        if returnObject.this == 0:
            return None

        returnObject.userManagesMemory = 1
        return returnObject.setPointer()
Beispiel #6
0
 def CreateNewWindow(self, newName):
     self.listbox.insert(tk.END, newName)
     self.windowArray[newName] = GraphicsWindow.GraphicsWindow(newName)
# This program creates a graphics window with a rectangle. It provides the
# template used with all of the graphicsal programs used in the book.

import GraphicsWindow

# Create the window and access the canvas

win = GraphicsWindow()
canvas = win.canvas()

# Draw on the canvas
canvas.drawRect(5, 10, 20, 30)

# Wait for the user to close the window
win.wait()