[Pythonmac-SIG] Weired SelctWindow behaviour

Peter Sommerfeld peter.sommerfeld@gmx.de
Tue, 1 Dec 1998 14:03:43 +0100


I've got some weired behaviour of my inContent handler. If I click
into the content part of a second (deactivated) window everything
works ok, the window comes to front. But if I click into the title
bar nothing happens. I've made a normal dispatch table wich switches
into the different handlers and the handler then calls SelectWindow().
Nothing special at all.

Any idea ?

Thanks

Peter

-------------------------------------------------------------

def inContent(evt):
	part, w = FindWindow(evt[3])
	if w: # if console window
		if  w  != 	FrontWindow() :
			w.SelectWindow()
		else:
			if _win_.has_key(w):
				xy = GlobalToLocal(evt[3])
				... / ...	# some code
			else:
				self.passEvt(evt)