added command line option to set the window title

This commit is contained in:
Constantin Wenger
2016-01-12 18:46:24 +01:00
parent 36ab224853
commit 96048b5133
2 changed files with 8 additions and 3 deletions

View File

@@ -116,8 +116,8 @@ class MainFrame(wx.Frame):
def getInstance(cls):
return cls.__instance if cls.__instance is not None else MainFrame()
def __init__(self):
self.title="pyfa %s%s - Python Fitting Assistant"%(config.version, "" if config.tag.lower() != 'git' else " (git)")
def __init__(self, title):
self.title=title
wx.Frame.__init__(self, None, wx.ID_ANY, self.title)
MainFrame.__instance = self