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()