Show age in profile dialog
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user