|
From: Mark B. <mar...@gm...> - 2012-09-05 23:19:31
|
Hi, I'm not an expert so please go easy on me. I am using the pyplot lasso demo, and have got it to work how I would like. I am having a problem, however, where I cannot get it to work if my python file is not the main file (where __name__ is not __main__). I took the part at the bottom in the "if __name__ == '__main__':" and put it into a class. Everything works fine if I call the class from within the same file. However, if I call the class from another file, the graph loads fine but the lasso tool does not work. Troubleshooting revealed that LassoManager.onpress is not being called when I click the mouse. Any suggestions are welcome because this is driving me crazy! Thanks, Mark |