On Nov 29, 2007 2:30 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > There are some Gtk-specific functions at the bottom of mlab.py. It > tries to "import gtk" and then will either define them or not.
Ahh, I hadn't considered import time in the try/except block. In light of this, we probably will want to put them in another module. I was inclined to something like matplotlib.gui.gtktools, but tere is an analogous problem with mlab.rec2excel which conditionally imports pyExcelerator (you probably did not notice it in your timing since it wasn't installed). Perhaps matplotlib.external or matplotlib.optional as top-level packages for both (and related). Something like matplotlib.optional.exceltools matplotlib.optional.gtktools This will serve the dual purpose of cleaning mlab and making Jarrod's job a bit easier when he decides what to bring over to scipy. JDH ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel