Hello, I'm new to Python and I'm using Pydev. I'm having a problem: I have several classes and several variables outside the classes. I want to change a variable outside the classes from within a class:
# Class [B]class name_change(object): """Change a text variable outside this class""" def name_change(self): name = "elvenstruggle"[/B] # Variable [B]name = ""[/B] # Call Class [B]class = name_change()[/B]
Basically I want to change the name variable through the class, and I'm having trouble. It's not working! Please help me! Thanks a lot!