Asteron
2004-12-17, 02:22
im trying to do some custom navigation stuff that relies on window.getfocus() to figure out if the control is selected. i'm the function doesnt seem to work...
def oncontrol(self, control):
if control == self.getfocus():
print "it works"
else:
print "it doesnt"
doesnt necessarily print "it works". in my code self.getfocus() is returning a label which isnt able to get focus as labels cant take part in the navigation stuff. moreover getfocus() doesnt change as i change controls.
has anyone used self.getfocus() before? do i have to give up on the builtin navigation?
-ast
def oncontrol(self, control):
if control == self.getfocus():
print "it works"
else:
print "it doesnt"
doesnt necessarily print "it works". in my code self.getfocus() is returning a label which isnt able to get focus as labels cant take part in the navigation stuff. moreover getfocus() doesnt change as i change controls.
has anyone used self.getfocus() before? do i have to give up on the builtin navigation?
-ast