Show age in profile dialog

This commit is contained in:
2019-09-18 13:56:07 -05:00
parent 29e8b00656
commit 33ba50a7b4
2 changed files with 10 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ def text_size(wxObject, chars):
(x, y) = dc.GetMultiLineTextExtent("0"*chars)
return (x, -1)
class mainInfo(wx.Panel):
class baseTab(wx.Panel):
""" Panel to store main user information in a profile viewer."""
def get(self, control):
@@ -40,6 +40,8 @@ class mainInfo(wx.Panel):
def disable(self, control):
getattr(self, control).Enable(False)
class mainInfo(baseTab):
def __init__(self, panel):
super(mainInfo, self).__init__(panel)
sizer = wx.BoxSizer(wx.VERTICAL)