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:
e.g.
# Class
class name_change(object):
"""Change a text variable outside this class"""
def name_change(self):
name = "elvenstruggle"
# Variable
name = ""
# Call Class
class = name_change()
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!