mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-04-05 19:32:30 -04:00
Text processor now take into account the twishort support
This commit is contained in:
parent
c1e15fa1de
commit
5952709ba8
@ -79,15 +79,18 @@ class basicTweet(object):
|
|||||||
self.message.text_focus()
|
self.message.text_focus()
|
||||||
|
|
||||||
def text_processor(self, *args, **kwargs):
|
def text_processor(self, *args, **kwargs):
|
||||||
self.message.set_title(_(u"%s - %s of %d characters") % (self.title, len(self.message.get_text()), self.max))
|
|
||||||
if len(self.message.get_text()) > 1:
|
if len(self.message.get_text()) > 1:
|
||||||
self.message.enable_button("shortenButton")
|
self.message.enable_button("shortenButton")
|
||||||
self.message.enable_button("unshortenButton")
|
self.message.enable_button("unshortenButton")
|
||||||
else:
|
else:
|
||||||
self.message.disable_button("shortenButton")
|
self.message.disable_button("shortenButton")
|
||||||
self.message.disable_button("unshortenButton")
|
self.message.disable_button("unshortenButton")
|
||||||
if len(self.message.get_text()) > self.max:
|
if self.message.get("long_tweet") == False:
|
||||||
self.session.sound.play("max_length.ogg")
|
self.message.set_title(_(u"%s - %s of %d characters") % (self.title, len(self.message.get_text()), self.max))
|
||||||
|
if len(self.message.get_text()) > self.max:
|
||||||
|
self.session.sound.play("max_length.ogg")
|
||||||
|
else:
|
||||||
|
self.message.set_title(_(u"%s - %s characters") % (self.title, len(self.message.get_text())))
|
||||||
|
|
||||||
def spellcheck(self, event=None):
|
def spellcheck(self, event=None):
|
||||||
text = self.message.get_text()
|
text = self.message.get_text()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user