from sys import argv #importing gui from wxPython import wx from pydbMainFrame import pydbMainFrame #importing objects from Objects import PhysicalModel from Objects import PhysicalEntity from Objects import PhysicalProperty from Objects import IntType from Objects import VarcharType from Objects import TimestampType from Objects import PhysicalModel class pydbMainApp(wx.wxApp): def OnInit(self): self.model = PhysicalModel("model 1") frame = pydbMainFrame(self.model) frame.Show(wx.TRUE) self.SetTopWindow(frame) if(len(argv)>1): frame.filename = argv[1] frame.doOpen() return wx.TRUE