mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Improved the tweet dialogs.
This commit is contained in:
parent
83f9e32fd6
commit
3e8e2312f2
@ -67,16 +67,16 @@ class tweet(textLimited):
|
|||||||
def createControls(self, title, message, text):
|
def createControls(self, title, message, text):
|
||||||
self.createTextArea(message, text)
|
self.createTextArea(message, text)
|
||||||
self.box.add(self.textBox)
|
self.box.add(self.textBox)
|
||||||
self.upload_image = Gtk.Button(_(u"Upload a picture"))
|
self.upload_image = Gtk.Button(_(u"Upload image..."))
|
||||||
self.spellcheck = Gtk.Button(_("Spelling correction"))
|
self.spellcheck = Gtk.Button(_("Check spelling..."))
|
||||||
self.attach = Gtk.Button(_(u"Attach audio"))
|
self.attach = Gtk.Button(_(u"Attach audio..."))
|
||||||
self.shortenButton = Gtk.Button(_(u"Shorten URL"))
|
self.shortenButton = Gtk.Button(_(u"Shorten URL"))
|
||||||
self.unshortenButton = Gtk.Button(_(u"Expand URL"))
|
self.unshortenButton = Gtk.Button(_(u"Expand URL"))
|
||||||
self.shortenButton.hide()
|
self.shortenButton.hide()
|
||||||
self.shortenButton.set_no_show_all(True)
|
self.shortenButton.set_no_show_all(True)
|
||||||
self.unshortenButton.hide()
|
self.unshortenButton.hide()
|
||||||
self.unshortenButton.set_no_show_all(True)
|
self.unshortenButton.set_no_show_all(True)
|
||||||
self.translateButton = Gtk.Button(_(u"Translate message"))
|
self.translateButton = Gtk.Button(_(u"Translate..."))
|
||||||
self.autocompletionButton = Gtk.Button(_(u"&Autocomplete users"))
|
self.autocompletionButton = Gtk.Button(_(u"&Autocomplete users"))
|
||||||
self.buttonsBox1 = Gtk.Box(spacing=6)
|
self.buttonsBox1 = Gtk.Box(spacing=6)
|
||||||
self.buttonsBox1.add(self.upload_image)
|
self.buttonsBox1.add(self.upload_image)
|
||||||
|
@ -10,7 +10,7 @@ class textLimited(widgetUtils.BaseDialog):
|
|||||||
self.panel = wx.Panel(self)
|
self.panel = wx.Panel(self)
|
||||||
self.label = wx.StaticText(self.panel, -1, message)
|
self.label = wx.StaticText(self.panel, -1, message)
|
||||||
self.SetTitle(str(len(text)))
|
self.SetTitle(str(len(text)))
|
||||||
self.text = wx.TextCtrl(self.panel, -1, text, size=(439, -1), style=wx.TE_MULTILINE)
|
self.text = wx.TextCtrl(self.panel, -1, text, size=(439, -1))
|
||||||
# font = self.text.GetFont()
|
# font = self.text.GetFont()
|
||||||
# dc = wx.WindowDC(self.text)
|
# dc = wx.WindowDC(self.text)
|
||||||
# dc.SetFont(font)
|
# dc.SetFont(font)
|
||||||
@ -61,14 +61,14 @@ class tweet(textLimited):
|
|||||||
self.mainBox = wx.BoxSizer(wx.VERTICAL)
|
self.mainBox = wx.BoxSizer(wx.VERTICAL)
|
||||||
self.createTextArea(message, text)
|
self.createTextArea(message, text)
|
||||||
self.mainBox.Add(self.textBox, 0, wx.ALL, 5)
|
self.mainBox.Add(self.textBox, 0, wx.ALL, 5)
|
||||||
self.upload_image = wx.Button(self.panel, -1, _(u"Upload a picture"), size=wx.DefaultSize)
|
self.upload_image = wx.Button(self.panel, -1, _(u"Upload image..."), size=wx.DefaultSize)
|
||||||
self.spellcheck = wx.Button(self.panel, -1, _("Spelling correction"), size=wx.DefaultSize)
|
self.spellcheck = wx.Button(self.panel, -1, _("Check spelling..."), size=wx.DefaultSize)
|
||||||
self.attach = wx.Button(self.panel, -1, _(u"Attach audio"), size=wx.DefaultSize)
|
self.attach = wx.Button(self.panel, -1, _(u"Attach audio..."), size=wx.DefaultSize)
|
||||||
self.shortenButton = wx.Button(self.panel, -1, _(u"Shorten URL"), size=wx.DefaultSize)
|
self.shortenButton = wx.Button(self.panel, -1, _(u"Shorten URL"), size=wx.DefaultSize)
|
||||||
self.unshortenButton = wx.Button(self.panel, -1, _(u"Expand URL"), size=wx.DefaultSize)
|
self.unshortenButton = wx.Button(self.panel, -1, _(u"Expand URL"), size=wx.DefaultSize)
|
||||||
self.shortenButton.Disable()
|
self.shortenButton.Disable()
|
||||||
self.unshortenButton.Disable()
|
self.unshortenButton.Disable()
|
||||||
self.translateButton = wx.Button(self.panel, -1, _(u"Translate message"), size=wx.DefaultSize)
|
self.translateButton = wx.Button(self.panel, -1, _(u"Translate..."), size=wx.DefaultSize)
|
||||||
self.autocompletionButton = wx.Button(self.panel, -1, _(u"&Autocomplete users"))
|
self.autocompletionButton = wx.Button(self.panel, -1, _(u"&Autocomplete users"))
|
||||||
self.okButton = wx.Button(self.panel, wx.ID_OK, _(u"Send"), size=wx.DefaultSize)
|
self.okButton = wx.Button(self.panel, wx.ID_OK, _(u"Send"), size=wx.DefaultSize)
|
||||||
self.okButton.SetDefault()
|
self.okButton.SetDefault()
|
||||||
|
Loading…
Reference in New Issue
Block a user