[pygtk] ruler widget deprecated?
Gustavo J. A. M. Carneiro
gjc at inescporto.pt
Tue Jan 31 07:23:52 WST 2006
On Mon, 2006-01-30 at 21:29 +0100, N. Volbers wrote:
> Hello everyone,
>
> I intended to add rulers to my matplotlib canvas widget, but then I have
> read in the reference that the ruler widget (and hruler, vruler) is
> deprecated and will be moved to another package. To which package?
> Should I use it at all or
> is there an alternative implementation?
A few years ago I forked Gtk*Ruler widgets for gnumexp, a scientific
application. You might (or not) be interested in using it:
http://cvs.sourceforge.net/viewcvs.py/numexp/gnumexp/src/xygraph/nxpruler/
Features:
- Python bindings included;
- Rulers are 'active', you can drag them like a scrollbar;
- You can also 'stretch' a ruler, to scale the associated view;
- The scale numbers can be arbitrarily small or large float numbers,
and are displayed in engineering notation (%g format);
- It has a logarithmic mode.
If you do use it, you'd have to include it in your package, as I've no
intention of packaging it separately from gnumexp.
Otherwise, you can continue to use GtkRuler for the time being. There
is no way for it to disappear before gtk+ 3.0.
Regards.
--
Gustavo J. A. M. Carneiro
<gjc at inescporto.pt> <gustavo at users.sourceforge.net>
The universe is always one step beyond logic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060130/b737c57d/attachment.pgp
More information about the pygtk
mailing list