mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-03-14 01:23:21 -06:00
Fix all message dialogs.
This commit is contained in:
parent
08f197a1f8
commit
176c2500f7
@ -307,7 +307,7 @@ class viewTweet(widgetUtils.BaseDialog):
|
|||||||
self.text = wx.TextCtrl(panel, -1, text, style=wx.TE_READONLY|wx.TE_MULTILINE, size=(250, 180))
|
self.text = wx.TextCtrl(panel, -1, text, style=wx.TE_READONLY|wx.TE_MULTILINE, size=(250, 180))
|
||||||
dc = wx.WindowDC(self.text)
|
dc = wx.WindowDC(self.text)
|
||||||
dc.SetFont(self.text.GetFont())
|
dc.SetFont(self.text.GetFont())
|
||||||
(x, y, z) = dc.GetMultiLineTextExtent("0"*140)
|
(x, y) = dc.GetMultiLineTextExtent("0"*140)
|
||||||
self.text.SetSize((x, y))
|
self.text.SetSize((x, y))
|
||||||
self.text.SetFocus()
|
self.text.SetFocus()
|
||||||
textBox = wx.BoxSizer(wx.HORIZONTAL)
|
textBox = wx.BoxSizer(wx.HORIZONTAL)
|
||||||
@ -319,7 +319,7 @@ class viewTweet(widgetUtils.BaseDialog):
|
|||||||
self.image_description = wx.TextCtrl(panel, -1, style=wx.TE_READONLY|wx.TE_MULTILINE, size=(250, 180))
|
self.image_description = wx.TextCtrl(panel, -1, style=wx.TE_READONLY|wx.TE_MULTILINE, size=(250, 180))
|
||||||
dc = wx.WindowDC(self.image_description)
|
dc = wx.WindowDC(self.image_description)
|
||||||
dc.SetFont(self.image_description.GetFont())
|
dc.SetFont(self.image_description.GetFont())
|
||||||
(x, y, z) = dc.GetMultiLineTextExtent("0"*450)
|
(x, y) = dc.GetMultiLineTextExtent("0"*450)
|
||||||
self.image_description.SetSize((x, y))
|
self.image_description.SetSize((x, y))
|
||||||
self.image_description.Enable(False)
|
self.image_description.Enable(False)
|
||||||
iBox = wx.BoxSizer(wx.HORIZONTAL)
|
iBox = wx.BoxSizer(wx.HORIZONTAL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user