Re: [pygtk] a widget like gimp's canvas

2004-08-05 Thread John Finlay
Johannes Zellner wrote: On Wed, Aug 04, 2004 at 10:41:52AM -0300, Christian Robottom Reis wrote: On Wed, Aug 04, 2004 at 03:38:08PM +0200, Johannes Zellner wrote: the rulers ARE the difficult part! w/o any rulers, it's easy. The painful thing is to size and scroll the rulers simulaneously w

Re: [pygtk] a widget like gimp's canvas

2004-08-04 Thread Iñigo Serna
I've written some code using rulers and scrollbars that maybe could be useful for you: http://inigo.katxi.org/cgi-bin/archzoom.cgi/[EMAIL PROTECTED]/gdesklets-editor--dev--0.1--patch-4/gdesklets-desktop.py btw, reading pygtk reference seems that rulers are deprecated... does anyone know the re

Re: [pygtk] a widget like gimp's canvas

2004-08-04 Thread Arjan Molenaar
Hi, You should have a look at how Dia does this. It's C code alright, but it shows exactly what you want (don't know the class to look, probably lib/display.c). All I can remember is that it's pretty easy (in the end ;-). Regards, Arjan Johannes Zellner wrote: On Wed, Aug 04, 2004 at 10:41:52AM

Re: [pygtk] a widget like gimp's canvas

2004-08-04 Thread Johannes Zellner
On Wed, Aug 04, 2004 at 10:41:52AM -0300, Christian Robottom Reis wrote: > On Wed, Aug 04, 2004 at 03:38:08PM +0200, Johannes Zellner wrote: > > the rulers ARE the difficult part! w/o any rulers, it's easy. > > The painful thing is to size and scroll the rulers simulaneously > > with the drawingare

Re: [pygtk] a widget like gimp's canvas

2004-08-04 Thread Christian Robottom Reis
On Wed, Aug 04, 2004 at 03:38:08PM +0200, Johannes Zellner wrote: > the rulers ARE the difficult part! w/o any rulers, it's easy. > The painful thing is to size and scroll the rulers simulaneously > with the drawingarea (which can be placed inside a scrolledwindow). Why not put rulers and canvas i

Re: [pygtk] a widget like gimp's canvas

2004-08-04 Thread Johannes Zellner
On Wed, Aug 04, 2004 at 09:48:15AM -0300, Christian Robottom Reis wrote: > On Wed, Aug 04, 2004 at 07:42:51AM +0200, Johannes Zellner wrote: > > is there something like gimp's canvas (scrollable drawingarea with rulers > > which scroll simulaneously with the drawingarea) for pygtk? -- maybe as > >

Re: [pygtk] a widget like gimp's canvas

2004-08-04 Thread Christian Robottom Reis
On Wed, Aug 04, 2004 at 07:42:51AM +0200, Johannes Zellner wrote: > is there something like gimp's canvas (scrollable drawingarea with rulers > which scroll simulaneously with the drawingarea) for pygtk? -- maybe as > code sample? There's a DrawingArea widget: http://www.pygtk.org/pygtk2tutor

[pygtk] a widget like gimp's canvas

2004-08-03 Thread Johannes Zellner
Hi, is there something like gimp's canvas (scrollable drawingarea with rulers which scroll simulaneously with the drawingarea) for pygtk? -- maybe as code sample? -- Johannes ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/list