Set focus for Button
This commit is contained in:
parent
345aabc824
commit
180be467a4
|
@ -1506,6 +1506,14 @@ class Button(Element):
|
||||||
def GetText(self):
|
def GetText(self):
|
||||||
return self.ButtonText
|
return self.ButtonText
|
||||||
|
|
||||||
|
|
||||||
|
def SetFocus(self):
|
||||||
|
try:
|
||||||
|
self.TKButton.focus_set()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
try:
|
try:
|
||||||
self.TKButton.__del__()
|
self.TKButton.__del__()
|
||||||
|
|
Loading…
Reference in New Issue