[Tutor] unsubscriptable error

Vidhya Narayanan gtg066j@mail.gatech.edu
Thu Jun 5 09:41:18 2003


Dear python users

                I am new to python and am presently in the process of lea=
rning
the basics. I wrote a class that calls another class. When I execute my m=
ain
program I get this error message :TypeError: unsubscriptable object

This is how my code goes:

class1: modelmanager
self.listofmodels.append[RexFunctions1('Model Properties', self.modelActo=
r,
self.renderer, self.pane)]

Rexfunctions is my second class that needs all the properties within the
brackets. Not sure where I am making the mistake. Would be great if someo=
ne
could help me out.Thanks in advance.

Regards

Vidhya