Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

CubicSpline/1002/CubicSpline.py

From ZeroWiki
from wxPython.wx import *
from GraphPanel import *

class MainFrame(wxFrame):
	def __init__(self, parent=NULL, id=NewId(), title='Graph', pos=wxDefaultPosition, size=wxDefaultSize):
		wxFrame.__init__(self, parent, id, title, pos, size)
		self._initChildControl()
			
	def _initChildControl(self):
		self.wxPanelForGraph = wxPanel(self, NewId(), pos=(0,0),size=(700,400))
		self.wxGraph = GraphPanel(self.wxPanelForGraph, pos=(0,0), size=(700,400))
		self.wxGraph.Show()

class App(wxApp):
	def OnInit(self):
		frame = MainFrame(pos=(100,100), size=(720,400))
		frame.Show()
		return true

if __name__=="__main__":
	theApp = App(0)
	theApp.MainLoop()