Tree views - Best design practices
gruszczy at gmail.com
Thu Jan 8 17:21:52 CET 2009
>>>> class Element(object):
> operations = "Element operations"
>>>> class Group(object):
> operations = "Group operations"
>>>> e = Element()
>>>> g = Group()
> 'Element operations'
> 'Group operations'
But this is the same as asking for a class, except for having to write
a method giving some form of a class name and then basing on this
classname display operations. I know this solution, but this is what I
would like to evade.
More information about the Python-list