class gui():
def selCon(self):
print selection
def create(self):
inst=gui()
cmds.button(l="Connect to Selected",command='inst.selCon()')
I keep getting error saying name 'inst' is not defined # dont understand when method is in the same class and when I am making a call clicking the button i get this error message