button .top.quit -text Quit -command exit
pack .top.quit
>
quit = Button(top, text='Quit', command=sys.exit)
quit.pack()
# Make some brushes to draw points
ignoreBrush = wpy.CBrush((127,127,127)).Create()
mainBrush = wpy.CBrush((127,127,0).Create()
# The View
class GraphView(wpy.CScrollView):
def OnCreate(self, event):
def OnSize(self, rect): # Initial size or resize of window
def SetSelected(self, new): # Change the selected point
def DrawGraph(self, DC): # draw the graph
def OnDraw(self, DC): # Draw the view
# Create the app
app = GraphApp()
By: Tyler Brooks