def __init__(self, redirect=False, filename=None): wx.App.__init__(self, redirect, filename) # print 'init',__appname__, sys.argv self.mainframe = AgileMainframe( title=__appname__, moduledirs=moduledirs, # subdirectories containing modules appdir=APPDIR, args=sys.argv, is_maximize=True, is_centerscreen=True, size_toolbaricons=(32, 32), style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE) icon = wx.Icon(os.path.join(APPDIR, 'images', 'icon_sumopy.png'), wx.BITMAP_TYPE_PNG, 16, 16) self.mainframe.SetIcon(icon) self.mainframe.Show() self.mainframe.refresh_moduleguis() self.mainframe.menubar.append_menu('About') self.mainframe.menubar.append_item('About/Info...', self.on_about, info='About SUMOPy', bitmap=wx.ArtProvider.GetBitmap( wx.ART_INFORMATION, wx.ART_MENU))
class MyApp(wx.App): def __init__(self, redirect=False, filename=None): wx.App.__init__(self, redirect, filename) # print 'init',__appname__, sys.argv self.mainframe = AgileMainframe( title=__appname__, moduledirs=moduledirs, # subdirectories containing modules appdir=APPDIR, args=sys.argv, is_maximize=True, is_centerscreen=True, size_toolbaricons=(32, 32), style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE) icon = wx.Icon(os.path.join(APPDIR, 'images', 'icon_sumopy.png'), wx.BITMAP_TYPE_PNG, 16, 16) self.mainframe.SetIcon(icon) self.mainframe.Show() self.mainframe.refresh_moduleguis() self.mainframe.menubar.append_menu('About') self.mainframe.menubar.append_item('About/Info...', self.on_about, info='About SUMOPy', bitmap=wx.ArtProvider.GetBitmap( wx.ART_INFORMATION, wx.ART_MENU)) def on_about(self, event): info = wx.AboutDialogInfo() #info.SetIcon(wx.Icon('hunter.png', wx.BITMAP_TYPE_PNG)) info.SetName(__appname__) info.SetVersion(__version__) info.SetDescription(__doc__) info.SetCopyright(__copyright__) info.SetWebSite('http://sumo.dlr.de/wiki/Contributed/SUMOPy') # info.SetWebSite('http://distart041.ing.unibo.it/~mait/projects/sim/users_guide/users_guide.html') info.SetLicence(__licence__) info.AddDeveloper(__author__) info.AddDeveloper( "Cristian Poliziani\nwith the friendly support of the SUMO team at the German Aerospace Center (DLR)" ) info.AddDocWriter(__author__ + ', Cristian Poliziani') info.AddArtist(__author__) #info.AddTranslator('Jan Bodnar') wx.AboutBox(info) event.Skip()
class MyApp(wx.App): def __init__(self, redirect=False, filename=None): wx.App.__init__(self, redirect, filename) # print 'init',__appname__, sys.argv self.mainframe = AgileMainframe( title=__appname__, moduledirs=moduledirs, # subdirectories containing modules appdir=APPDIR, args=sys.argv, is_maximize=False, is_centerscreen=True, size_toolbaricons=(32, 32), style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE ) icon = wx.Icon(os.path.join(APPDIR, 'images', 'icon_sumopy.png'), wx.BITMAP_TYPE_PNG, 16, 16) self.mainframe.SetIcon(icon) self.mainframe.Show() self.mainframe.refresh_moduleguis() self.mainframe.menubar.append_menu('About') self.mainframe.menubar.append_item('About/Info...', self.on_about, info='About SUMOPy', bitmap=wx.ArtProvider.GetBitmap( wx.ART_INFORMATION, wx.ART_MENU) ) def on_about(self, event): info = wx.AboutDialogInfo() #info.SetIcon(wx.Icon('hunter.png', wx.BITMAP_TYPE_PNG)) info.SetName(__appname__) info.SetVersion(__version__) info.SetDescription(__doc__) info.SetCopyright(__copyright__) info.SetWebSite('http://sumo-sim.org/') # info.SetWebSite('http://distart041.ing.unibo.it/~mait/projects/sim/users_guide/users_guide.html') info.SetLicence(__licence__) info.AddDeveloper(__author__) info.AddDeveloper( "Supported by the SUMO team at the German Aerospace Center (DLR)!") info.AddDocWriter(__author__) info.AddArtist(__author__) #info.AddTranslator('Jan Bodnar') wx.AboutBox(info) event.Skip()
def __init__(self, redirect=False, filename=None): wx.App.__init__(self, redirect, filename) # print 'init',__appname__, sys.argv self.mainframe = AgileMainframe( title=__appname__, moduledirs=moduledirs, # subdirectories containing modules appdir=APPDIR, args=sys.argv, is_maximize=False, is_centerscreen=True, size_toolbaricons=(32, 32), style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE ) icon = wx.Icon(os.path.join(APPDIR, 'images', 'icon_sumopy.png'), wx.BITMAP_TYPE_PNG, 16, 16) self.mainframe.SetIcon(icon) self.mainframe.Show() self.mainframe.refresh_moduleguis() self.mainframe.menubar.append_menu('About') self.mainframe.menubar.append_item('About/Info...', self.on_about, info='About SUMOPy', bitmap=wx.ArtProvider.GetBitmap( wx.ART_INFORMATION, wx.ART_MENU) )