how can initialize empty objects in python ?
I need to initialize my class members (for examples tk.frames, vtk visualizations etc)
thanks
how can initialize empty objects in python ?
I need to initialize my class members (for examples tk.frames, vtk visualizations etc)
thanks
Access the attributes of self
in your __init__()
method.
class C(object):
def __init__(self, val):
self.val = val