Increased character limit in display name up to 50 characters

This commit is contained in:
2017-11-12 21:20:56 -06:00
parent cdad6ff600
commit 636c21df94
2 changed files with 3 additions and 2 deletions

View File

@@ -7,12 +7,12 @@ class updateProfileDialog(baseDialog.BaseWXDialog):
super(updateProfileDialog, self).__init__(parent=None, id=-1)
self.SetTitle(_(u"Update your profile"))
panel = wx.Panel(self)
labelName = wx.StaticText(panel, -1, _(u"&Name (20 characters maximum)"))
labelName = wx.StaticText(panel, -1, _(u"&Name (50 characters maximum)"))
self.name = wx.TextCtrl(panel, -1)
self.name.SetFocus()
dc = wx.WindowDC(self.name)
dc.SetFont(self.name.GetFont())
self.name.SetSize(dc.GetTextExtent("0"*20))
self.name.SetSize(dc.GetTextExtent("0"*50))
labelLocation = wx.StaticText(panel, -1, _(u"&Location"))
self.location = wx.TextCtrl(panel, -1)
dc = wx.WindowDC(self.location)