From: John H. <jd...@gm...> - 2007-11-29 20:42:47
|
On Nov 29, 2007 2:30 PM, Michael Droettboom <md...@st...> 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 |