Removed calls to SetMaxLength in dialogs

This commit is contained in:
Manuel Cortez 2021-11-10 17:35:24 -06:00
parent eea059b905
commit b3bf0ab8e6

View File

@ -25,7 +25,6 @@ class tweet(wx.Dialog):
self.text = wx.TextCtrl(panel, wx.ID_ANY, "", style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER) self.text = wx.TextCtrl(panel, wx.ID_ANY, "", style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
self.Bind(wx.EVT_CHAR_HOOK, self.handle_keys, self.text) self.Bind(wx.EVT_CHAR_HOOK, self.handle_keys, self.text)
self.text.SetMinSize((1000, 158)) self.text.SetMinSize((1000, 158))
self.text.SetMaxLength(max_length)
text_sizer.Add(self.text, 1, wx.EXPAND, 0) text_sizer.Add(self.text, 1, wx.EXPAND, 0)
list_sizer = wx.BoxSizer(wx.HORIZONTAL) list_sizer = wx.BoxSizer(wx.HORIZONTAL)
mainBox.Add(list_sizer, 1, wx.EXPAND, 0) mainBox.Add(list_sizer, 1, wx.EXPAND, 0)
@ -163,7 +162,6 @@ class reply(tweet):
self.text = wx.TextCtrl(panel, wx.ID_ANY, "", style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER) self.text = wx.TextCtrl(panel, wx.ID_ANY, "", style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
self.Bind(wx.EVT_CHAR_HOOK, self.handle_keys, self.text) self.Bind(wx.EVT_CHAR_HOOK, self.handle_keys, self.text)
self.text.SetMinSize((1000, 158)) self.text.SetMinSize((1000, 158))
self.text.SetMaxLength(max_length)
text_sizer.Add(self.text, 1, wx.EXPAND, 0) text_sizer.Add(self.text, 1, wx.EXPAND, 0)
list_sizer = wx.BoxSizer(wx.HORIZONTAL) list_sizer = wx.BoxSizer(wx.HORIZONTAL)
mainBox.Add(list_sizer, 1, wx.EXPAND, 0) mainBox.Add(list_sizer, 1, wx.EXPAND, 0)
@ -248,7 +246,6 @@ class dm(tweet):
self.text = wx.TextCtrl(panel, wx.ID_ANY, "", style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER) self.text = wx.TextCtrl(panel, wx.ID_ANY, "", style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
self.Bind(wx.EVT_CHAR_HOOK, self.handle_keys, self.text) self.Bind(wx.EVT_CHAR_HOOK, self.handle_keys, self.text)
self.text.SetMinSize((1000, 158)) self.text.SetMinSize((1000, 158))
self.text.SetMaxLength(max_length)
self.text.SetFocus() self.text.SetFocus()
text_sizer.Add(self.text, 1, wx.EXPAND, 0) text_sizer.Add(self.text, 1, wx.EXPAND, 0)
list_sizer = wx.BoxSizer(wx.HORIZONTAL) list_sizer = wx.BoxSizer(wx.HORIZONTAL)