U E D R , A S I H C RSS

Cubic Spline/1002/Cubic Spline.py


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()
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-05-27 07:09:19
Processing time 0.0852 sec