mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-23 03:38:08 -06:00
Fixed error with setters in view tweet dialog
This commit is contained in:
parent
3cf6ac5c06
commit
c655c76196
@ -36,11 +36,11 @@ class textLimited(widgetUtils.BaseDialog):
|
|||||||
return self.SetTitle(new_title)
|
return self.SetTitle(new_title)
|
||||||
|
|
||||||
def enable_button(self, buttonName):
|
def enable_button(self, buttonName):
|
||||||
if getattr(self, buttonName):
|
if hasattr(self, buttonName):
|
||||||
return getattr(self, buttonName).Enable()
|
return getattr(self, buttonName).Enable()
|
||||||
|
|
||||||
def disable_button(self, buttonName):
|
def disable_button(self, buttonName):
|
||||||
if getattr(self, buttonName):
|
if hasattr(self, buttonName):
|
||||||
return getattr(self, buttonName).Disable()
|
return getattr(self, buttonName).Disable()
|
||||||
|
|
||||||
def onSelect(self, ev):
|
def onSelect(self, ev):
|
||||||
@ -387,7 +387,7 @@ class viewTweet(widgetUtils.BaseDialog):
|
|||||||
self.text.SelectAll()
|
self.text.SelectAll()
|
||||||
|
|
||||||
def enable_button(self, buttonName):
|
def enable_button(self, buttonName):
|
||||||
if getattr(self, buttonName):
|
if hasattr(self, buttonName):
|
||||||
return getattr(self, buttonName).Enable()
|
return getattr(self, buttonName).Enable()
|
||||||
|
|
||||||
class viewNonTweet(widgetUtils.BaseDialog):
|
class viewNonTweet(widgetUtils.BaseDialog):
|
||||||
|
Loading…
Reference in New Issue
Block a user