import wx from draggablemappanel import DraggableMapPanel from googlemap import GoogleTileCache class MainWindow(wx.Frame): def __init__(self, parent = None, title = "Testi", size = (600,600), **kwargs): wx.Frame.__init__(self, parent, title = title, size = size, **kwargs) self.tilecache = GoogleTileCache() self.panel = DraggableMapPanel(self, self.tilecache) class MyApp(wx.App): def OnInit(self): self.window = MainWindow() self.window.Show() return True if __name__ == '__main__': app = MyApp() app.MainLoop()