Hello everybody, I think I really understand what Christopher expresses with 'you'll get a much better result, and probably less pain'. But because I couldn't find such a prompt and I'm not familiar with wxpython, I tried to build up my own one (using matplotlib.widgets.button) and run into two problems (already posted): a) When pressing for example 'g', 'l' or 'f' the button gets a grid, a log scale or gets full-screen. Can this be turned off? (subject: skip mpl-axes-interaction during key_press_event's) b) Some keys seem to be unaccessible: e.g. enter and backspace. The backend_(wx|gtk|tkagg).py might have to be modified to handle this. (subject: additional key events)
Now my question is: Could a prompt be a useful part of matplotlib? Best regards and thanks in advance for any comments, Matthias Michler On Friday 25 May 2007 17:49, Christopher Barker wrote: > Matthias Michler wrote: > > I tried useing matplotlib as a GUI for my programs. I'd like to > > incorporate things like Buttons, Sliders, RadioButtons and so on from > > matplotlib.widgets, but missed a prompt (i.e. a field to input text > > and/or numbers). > > I'm going to advise you to not try to do that. MPL really isn't a GUI > toolkit, there there are a number of very nice and complete GUI toolkits > that MPL works just great with. It will require a bit of learning up > front, but you'll get a much better result, and probably less pain in > the process. My thoughts: > > For Cross platform (Windows, *nix, OS-X): wxPython or pyQT. Tk's OK too, > but at least until recently, not very native or robust on OS-X. > > For *nix only: PyGTK > > For OS-X only: Maybe pyObjC, but only if MPL is working OK with the > Cocoa back-end -- or has development stalled there? > > See the "embedding in ..." examples, and be sure to check out wxMPL if > you want to use wxPython. > > -Chris ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users