Expand URL button is shown in the view tweet dialogue

This commit is contained in:
2015-03-12 11:45:53 -06:00
parent 5926732c26
commit 4f4b8c6447
3 changed files with 11 additions and 0 deletions

View File

@@ -228,6 +228,10 @@ class viewTweet(widgetUtils.BaseDialog):
def onSelect(self, ev):
self.text.SelectAll()
def enable_button(self, buttonName):
if getattr(self, buttonName):
return getattr(self, buttonName).Enable()
class viewNonTweet(widgetUtils.BaseDialog):
def __init__(self, text):
@@ -278,3 +282,7 @@ class viewNonTweet(widgetUtils.BaseDialog):
def text_focus(self):
self.text.SetFocus()
def enable_button(self, buttonName):
if getattr(self, buttonName):
return getattr(self, buttonName).Enable()