Hi,
I was wondering if there are alternative graph drawing code samples or libraries that work with wxPython besides wxOGL?
I want something that I can subclass so I can have animated elements and animated links as well (to depict flow rates).
I saw Gato, although it's based on Tkinter instead of wxPython.
Just wanted to see what else is out there so I don't reinvent the wheel.
Thanks,
-Doug
I would like to place a grid in something besides a full frame. I need to place a few buttons above the grid.
A wxGRid is a wxWindow, and you should be able to put it anywhere else
you can put any other control. I'd put it and the buttons into the
wxFrame with a wxBoxSizer(wxVertical)
Can anyone point me in the right direction. I've been looking at MDI with Sash but cannot get a grid to fit in one of those.
This should have worked as well, but I hate MDI, so I woudn't go down
that path. What problem did you have?
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Could you guys please start with a new mail when not replying ?
Every threaded mailer will screw up the order whenever you REPLY to an
UNRELATED mail.
So please:
New Question -> New Mail
Answer to a question -> Reply to Original
Thanks a lot
···
On Wednesday 02 July 2003 04:34 am, Mike Wagman wrote:
I would like to place a grid in something besides a full frame. I need to
place a few buttons above the grid.
Can anyone point me in the right direction. I've been looking at MDI with
Sash but cannot get a grid to fit in one of those.
Can anyone point me to an example. The notebook tabbed one will not work
well in my situation.
Thanks
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
I would like to place a grid in something besides a full frame. I need to place a few buttons above the grid.
OK, I alredy replied, but then I was thinking about it, so I wrote up a
little demo. I"ve enclosed it.
By the way, much as I like Sizers, I still have my problems with them.
In the example with this email, I found I had to put a border around
the button panel, so that it wouldn't be squashed up against the top of
the frame, even though each button in the button panel should have a
border already. In fact, as it is now, the boder on teh bottom is
rioght,. but the border ont eh top is too small. Anyone have any ideas?
On Wednesday 02 July 2003 10:38 am, Chris Barker wrote:
"Uwe C. Schroeder" wrote:
> Could you guys please start with a new mail when not replying ?
> Every threaded mailer will screw up the order whenever you REPLY to an
> UNRELATED mail.
Was this a reply the the grid question?? (wink, wink)\
-Chris
--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
Hi,
I was wondering if there are alternative graph drawing code samples or libraries that work with wxPython besides wxOGL?
I want something that I can subclass so I can have animated elements and animated links as well (to depict flow rates).
I saw Gato, although it's based on Tkinter instead of wxPython.
Just wanted to see what else is out there so I don't reinvent the wheel.
There is wxArt2d, but it hasn't been wrapped for Python yet (and that will be a huge task to do it right.) It seems that just about anything you would want to do with a 2 dimensional canvas can be done with wxArt2d.
There is SimpleCanvas in OSAF's Chandler source tree. As the name implies it is simple (in terms of implementation and breadth of features, not necessarily the ease of use,) but it should be able to be built upon without too much hassle.
There is Chris Barker's FloatCanvas but it's been a long time since I took a close look at that so I can't comment on its current state or usability. Chris, care to comment on this and/or post a link to the current source?
Anybody know of any others?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
There is Chris Barker's FloatCanvas but it's been a long time since I
took a close look at that so I can't comment on its current state or
usability. Chris, care to comment on this and/or post a link to the
current source?
I don't have the source anywhere handy on teh web right now, but I'd be
glad to send it to anyone that asks.
FloatCanvas is designed to draw stuff in arbitrary floating point
coordinates, so that it can be zoomed and scrolled, and the user doesn't
have to handle all that stuff. It is double (and optionaly triple)
buffered to that screnn re-draws are fast. The triple buffering is so
that you can re-draw stuff on top of a background, and only have to
re-draw the top. This makes it pretty easy to do simple animation. It
support all the basic geometric shapes, and text, but it does not zoom
text.
At the moment, it only displays stuff, and you can't click on it to
interact with it (except zooming, etc). I'm working on that part, and
hopefully will get to it soon. I'd love to have help. If you're looking
to make something like GATO, it might be a good start, but you'd need to
add the interactive stuff (which I really do want to do...). Also, you'd
get zooming, which might mbe nce, and I don't hink GATO support that,
from a quick glance.
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Back in September, we had a little discussion of how to tell if X was running. The idea what that you didn't want to start up wxGTK if X was not running (and available to the user), and you might want to present your users with something more elegant than a crash, or even a non-GUI version of the app.
At the time, I found some C code that tested the connection to an X server. I threatened to wrap it up as a python module, and now I have done so.
Robin suggested that he might want to include it as a utility with wxPython, and I suppose one could even put this code in the wxPython initialization code, so that wxPython would never try to start if it didn't have access to an X server. My understanding is that the current version makes an X connection on import, but that the new one does it at app initiation, which may work better.
Ideally, one would have the same thing for wxMacPython, which someone posted a recipe for here back then. I don't know about Windows. Is there a console only version of Windows these days?
Enclosed is a tgz with:
isXmodule.c : the extension code
setup.py : the distutils build script
test_isX.py : A very simple test script
run : a shell script that builds and tests it with Python 2.1, 2.2, and 2.3