I have a class, in which two functions are present.
I wish to access a variable created within one function from the other.
Here is an example of what I'm trying to do:
def __init__(self, parent, controller):
tk.Frame.__init__(self,parent)
Message1 = None
Keyword1 = None
Keyword2 = None
Message_Ent = tk.Entry(self, textvariable = Message1)
Key1_Ent = tk.Entry(self, textvariable = Keyword1)
Key2_Ent = tk.Entry(self, textvariable = Keyword2)
def Main_Cipher(*args):
#Need to use these variables:
#Message1
#Keyword1
#Keyword2