[Pygui] PyGUI-2.3.2 ValueError on MacOSX

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Dec 17 23:41:07 CET 2010


Colin Brown wrote:

> ValueError: NSInvalidArgumentException - *** -focusStack only defined  
> for abstract class.  Define -[FlippedNSGraphicsContext focusStack]!

Hmmm, this may be because you're using an earlier version of
MacOSX than me. According to the Apple docs, focusStack only
exists in versions up to 10.5.

Can you please try adding the following method to class
FlippedNSGraphicsContext in GUI/Cocoa/Pixmap.py and tell me
whether it fixes the problem for you?

    def focusStack(self):
      return self.base.focusStack()

Thanks,
Greg


More information about the Pygui mailing list