You major problem is that __init__() uses double underlines prefix and postfix.
Also, remember that the module name and its file name are case sensitive!
Here is an example:
# save module as tank.py (file name is case sensitive!)
class Tank (object):
def __init__(self, name):
self.name = name
self.alive = True
self.ammo = 5
self.armor = 60
# test the module
if __name__ == '__main__':
mytank = Tank("Bob")
print mytank.name, mytank.armor # Bob 60
Your program should import the modules like this:
# module was saved as tank.py (case sensitive)
mytank = tank.Tank("Bob")
print mytank.name # Bob
Please make your thread title more specific, instead of "Python Problem" use "Problem with Python Class"
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...