wylark
/
munter.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add -v and "one true source"-ify program name
[munter.git]
/
munter
/
gui.py
diff --git
a/munter/gui.py
b/munter/gui.py
index 3642264d6ac8245bc1a04557877a265645d49801..9b7e0c8d7d876233ff5fca3dafbcd0ffd6372aa6 100644
(file)
--- a/
munter/gui.py
+++ b/
munter/gui.py
@@
-7,6
+7,8
@@
GUI implementation
import wx
from . import munter
import wx
from . import munter
+from . import __progname__ as progname
+from . import __version__ as version
class MainFrame(wx.Frame):
"""
class MainFrame(wx.Frame):
"""
@@
-16,14
+18,14
@@
class MainFrame(wx.Frame):
def __init__(self, *args, **kw):
super(MainFrame, self).__init__(*args, **kw)
def __init__(self, *args, **kw):
super(MainFrame, self).__init__(*args, **kw)
- self.SetTitle(
'Munter.py'
)
+ self.SetTitle(
progname
)
self.SetSize(600, 400)
self.props = self.init_props()
self.pnl = wx.Panel(self)
self.SetSize(600, 400)
self.props = self.init_props()
self.pnl = wx.Panel(self)
- st = wx.StaticText(self.pnl, label=
"Munter.py"
)
+ st = wx.StaticText(self.pnl, label=
progname
)
font = st.GetFont()
font.PointSize += 10
font = font.Bold()
font = st.GetFont()
font.PointSize += 10
font = font.Bold()