When I try to get value of variable I get an error:
AttributeError: 'NoneType' object has no attribute 'name'
Here is code:
class whatever(x):
def get_inpt(self):
print (self.createWidgets().name.get())
def createWidgets(self):
name = Entry(self).grid()
I want to have createWidgets
function because of tidiness and also keep get_inpt
out of it.
Q: How to process name
value between functions?
Working on Python-3.4.2