PDA

View Full Version : Bug in window.getfocus() ?


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

Asteron
2004-12-17, 17:19
maybe i should post this in the bugs forum?

-ast

[edit]
bump