On Nov 24, 2007 8:46 PM, Michael Frauens <[EMAIL PROTECTED]> wrote:
>
> 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.

Short answer: you cannot use pylab in a GUI.  Rather, you have to use
the matplotlib API (see  http://matplotlib.sourceforge.net/faq.html#OO
).  There are some examples to get you started, eg

http://matplotlib.sourceforge.net/examples/embedding_in_tk.py
http://matplotlib.sourceforge.net/examples/embedding_in_tk2.py

Hope this helps,
JDH

-------------------------------------------------------------------------
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