Wasn't sure where to post this so I'll keep it brief (and I have tried to check 
forums, FAQ and guides)

I'm a relative noob but have a Tk based GUI running properly and have used 
Matplotlib successfully in two separate implementations of code. When I try to 
combine my GUI code with my matplotlib code and then place a  "from pylab 
import *"  into my code,  I run into problems with the GUI widgets "text" 
variable "not being expected".  This is before I execute any specific features 
of pylab.

If I move the import down in my code, after the GUI classes I have created have 
exited their mainloop, I have no problem.  It seems as if execution of the 
pylab import interferes with the Tk widgets "text" keyword somehow.  I would 
prefer to execute my matplotlib "code" iteratively from inside of my gui (as 
the user picks different data sets and so forth) and not have the program exit 
my mainloop GUI environment to then plot independently using matplotlib.

The pieces work fine, but it is odd to me that the location of where I place 
the import determines the success of execution of my code.  Perhaps there is 
some important information about Tk running a mainloop and importing pylab at 
the same time that I do not understand.  (I normally execute from double click 
on the filename.py)  

I can share the code and the rc file but wanted to make sure I was in the right 
post location first.  Apologies if I misunderstood FAQ direction for problem 
review.






      
____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to