Addition of Button.Click() method

This commit is contained in:
MikeTheWatchGuy 2019-05-11 07:02:25 -04:00
parent 535c18890e
commit 845e5ce620
1 changed files with 11 additions and 0 deletions

View File

@ -1698,6 +1698,17 @@ class Button(Element):
pass
def Click(self):
"""
Generates a click of the button as if the user clicked the button
:return:
"""
try:
self.TKButton.invoke()
except:
print('Exception clicking button')
def __del__(self):
try:
self.TKButton.__del__()