[Pythonmac-SIG] Ctl.CreateRootControl( window ) always returns None
Steven D. Majewski
sdm7g@elvis.med.virginia.edu
Wed, 10 Mar 1999 17:44:21 -0500
Actually, I can get something other than None as a return value.
If I call it twice on the same window I get an error on the second call:
>>> w = Win.NewCWindow((50,50,480,220),'',0,1,-1,0,0)
>>> Ctl.CreateRootControl(w)
>>> Ctl.CreateRootControl(w)
Traceback (innermost last):
File "<stdin>", line 1, in ?
Mac OS Error: (-30587, 'Mac OS error code -30587')
But I can't find error code -30587 in the master list
<somewhere on apple developer web pages>ResultCodes.pdf
though maybe it's defined in an include file somewhere.
- Steve M.