Subclassing a read-only class
Gerhard Häring
gh_pythonlist at gmx.de
Mon Feb 18 10:34:52 EST 2002
More information about the Python-list mailing list
Mon Feb 18 10:34:52 EST 2002
- Previous message (by thread): tab order for Tkinter widgets
- Next message (by thread): Subclassing a read-only class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
For compatibility testing, I'd like to put an additional method into
window object I get from the curses module. Unfortunately, if I try to
do so, I get:
TypeError: object has read-only attributes
I'm pretty sure there is a solution, probably with a proxy object. But
currently I just don't get it.
Any ideas?
Gerhard
--
This sig powered by Python!
Außentemperatur in München: 8.1 °C Wind: 3.7 m/s
- Previous message (by thread): tab order for Tkinter widgets
- Next message (by thread): Subclassing a read-only class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list