From: Gary P. <pa...@in...> - 2004-03-17 20:53:40
|
Thanks very much, guys! -Gary ----- Original Message ----- From: "Todd Miller" <jm...@st...> To: "John Hunter" <jdh...@ni...> Cc: "Gary Pajer" <pa...@in...>; <mat...@li...> Sent: Wednesday, March 17, 2004 11:38 AM Subject: Re: [Matplotlib-users] TkAgg in a Tkinter GUI frame? > On Tue, 2004-03-16 at 07:29, John Hunter wrote: > > >>>>> "Gary" == Gary Pajer <pa...@in...> writes: > > > > Gary> I've been poking aroung a bit trying to see if I can locate > > Gary> my plots in a frame in my own Tkinter GUI rather than a > > Gary> stand-alone window. > > > > Gary> It looks like it might be possible if I can, for example, > > Gary> extract the frame instance from a TkAgg plot (or something > > Gary> like that) > > > > Gary> Can anyone comment or suggest a route? > > > > Todd, is this easily doable? > > As we all hoped, this was easy and is now in CVS. I refactored > FigureManagerTkAgg and added FigureCanvasTkAgg to support the new > functionality. FigureCanvasTkAgg defines get_tk_widget() to return > whatever tk widget is used to implement it. Currently it returns a Tk > canvas but I thought it would be best not to assume that will always be > the case. Like other Tk widgets, FigureCanvasTkAgg wants to be told > who its parent widget (master) is at construction time. > > > Could you write an embedding_in_tk.py > > example along the lines of embedding_in_gtk and embedding_in_wx? > > This is also in CVS. > > > > Regards, > Todd > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- > Todd Miller <jm...@st...> > |