mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Improved a little bit text dialogs's size for sending tweets, replies and dm's
This commit is contained in:
parent
538d6137d0
commit
b329ac8e3e
@ -18,13 +18,12 @@ class tweet(wx.Dialog):
|
|||||||
def create_controls(self, message: str, caption: str, max_length: int, thread_mode: bool) -> None:
|
def create_controls(self, message: str, caption: str, max_length: int, thread_mode: bool) -> None:
|
||||||
panel = wx.Panel(self)
|
panel = wx.Panel(self)
|
||||||
mainBox = wx.BoxSizer(wx.VERTICAL)
|
mainBox = wx.BoxSizer(wx.VERTICAL)
|
||||||
text_sizer = wx.BoxSizer(wx.VERTICAL)
|
text_sizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||||
mainBox.Add(text_sizer, 1, wx.EXPAND, 0)
|
mainBox.Add(text_sizer, 1, wx.EXPAND, 0)
|
||||||
label_1 = wx.StaticText(panel, wx.ID_ANY, caption)
|
label_1 = wx.StaticText(panel, wx.ID_ANY, caption)
|
||||||
text_sizer.Add(label_1, 0, 0, 0)
|
text_sizer.Add(label_1, 0, 0, 0)
|
||||||
self.text = wx.TextCtrl(panel, wx.ID_ANY, "", style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
|
self.text = wx.TextCtrl(panel, wx.ID_ANY, "", size=(444, -1), 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))
|
|
||||||
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)
|
||||||
@ -155,13 +154,12 @@ class reply(tweet):
|
|||||||
def create_controls(self, message: str, caption: str, max_length: int, thread_mode: bool) -> None:
|
def create_controls(self, message: str, caption: str, max_length: int, thread_mode: bool) -> None:
|
||||||
panel = wx.Panel(self)
|
panel = wx.Panel(self)
|
||||||
mainBox = wx.BoxSizer(wx.VERTICAL)
|
mainBox = wx.BoxSizer(wx.VERTICAL)
|
||||||
text_sizer = wx.BoxSizer(wx.VERTICAL)
|
text_sizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||||
mainBox.Add(text_sizer, 1, wx.EXPAND, 0)
|
mainBox.Add(text_sizer, 1, wx.EXPAND, 0)
|
||||||
label_1 = wx.StaticText(panel, wx.ID_ANY, caption)
|
label_1 = wx.StaticText(panel, wx.ID_ANY, caption)
|
||||||
text_sizer.Add(label_1, 0, 0, 0)
|
text_sizer.Add(label_1, 0, 0, 0)
|
||||||
self.text = wx.TextCtrl(panel, wx.ID_ANY, "", style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
|
self.text = wx.TextCtrl(panel, wx.ID_ANY, "", size=(500, 200), 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))
|
|
||||||
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)
|
||||||
@ -232,20 +230,19 @@ class dm(tweet):
|
|||||||
def create_controls(self, message: str, caption: str, max_length: int, thread_mode: bool) -> None:
|
def create_controls(self, message: str, caption: str, max_length: int, thread_mode: bool) -> None:
|
||||||
panel = wx.Panel(self)
|
panel = wx.Panel(self)
|
||||||
mainBox = wx.BoxSizer(wx.VERTICAL)
|
mainBox = wx.BoxSizer(wx.VERTICAL)
|
||||||
label_recipient = wx.StaticText(panel, -1, _(u"&Recipient"))
|
label_recipient = wx.StaticText(panel, -1, _("&Recipient"))
|
||||||
self.cb = wx.ComboBox(panel, -1, choices=self.users, value=self.users[0], size=wx.DefaultSize)
|
self.cb = wx.ComboBox(panel, -1, choices=self.users, value=self.users[0], size=wx.DefaultSize)
|
||||||
self.autocomplete_users = wx.Button(panel, -1, _(u"Auto&complete users"))
|
self.autocomplete_users = wx.Button(panel, -1, _(u"Auto&complete users"))
|
||||||
recipient_sizer = wx.BoxSizer(wx.HORIZONTAL)
|
recipient_sizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||||
recipient_sizer.Add(label_recipient, 0, 0, 0)
|
recipient_sizer.Add(label_recipient, 0, 0, 0)
|
||||||
recipient_sizer.Add(self.cb, 1, wx.EXPAND, 0)
|
recipient_sizer.Add(self.cb, 1, wx.EXPAND, 0)
|
||||||
mainBox.Add(recipient_sizer, 0, wx.EXPAND, 0)
|
mainBox.Add(recipient_sizer, 0, wx.EXPAND, 0)
|
||||||
text_sizer = wx.BoxSizer(wx.VERTICAL)
|
text_sizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||||
mainBox.Add(text_sizer, 1, wx.EXPAND, 0)
|
mainBox.Add(text_sizer, 1, wx.EXPAND, 0)
|
||||||
label_1 = wx.StaticText(panel, wx.ID_ANY, caption)
|
label_1 = wx.StaticText(panel, wx.ID_ANY, caption)
|
||||||
text_sizer.Add(label_1, 0, 0, 0)
|
text_sizer.Add(label_1, 0, 0, 0)
|
||||||
self.text = wx.TextCtrl(panel, wx.ID_ANY, "", style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
|
self.text = wx.TextCtrl(panel, wx.ID_ANY, "", size=(500, 200), 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.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)
|
||||||
|
Loading…
Reference in New Issue
Block a user