Pwm.NoteBook - 'Color' module missing

Greg Krohn gkrohn_NG_ at volucris.8m.com
Fri May 17 19:34:18 EDT 2002


When running this code:

    import Pmw
    root = Pmw.initialise()
    notebook = Pmw.NoteBook()
    root.mainloop()

I get the following traceback:

    Traceback (most recent call last):
      File "test.py", line 3, in ?
        notebook = Pmw.NoteBook()
      File "C:\Python22\Pmw\Pmw_0_8_5\lib\PmwNoteBook.py", line 60, in
__init__
        self._lightBorderColor, self._darkBorderColor = \
    AttributeError: 'module' object has no attribute 'Color'

(BTW, line 60 is continued on the next line with
"Pmw.Color.bordercolors(self, self['hull_background'])")

I'm using Pmw 0.8.5 with ActivePython 2.2.0 on Win2000. There is a
'PmwColor.py' in 'Pmw\lib', which I'm assuming is where the module is
supposed to come from. Anyone know how to load 'Color'? And\Or why it
doesn't load in the first place?

/usr/is/confused
greg





More information about the Python-list mailing list