I define a global of sshIP along with others in Main
foo,bar,sshIP = '','',''
using wx button event I define a function called load
to test to see if sshIP has a value or if it is still '', from what I've seen I can do this with isspace(), however my implementation seems to always be met with a NameError that sshIP is not defined. load
is a function of Main
def load(self,e):
if sshIP.isspace():
self.progressBox.AppendText("Cannot install, device not connected")
else:
self.installBtn.Enable()