[pygtk] a widget like gimp's canvas

Johannes Zellner johannes at zellner.org
Wed Aug 4 21:38:08 WST 2004


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
> > code sample?
> 
> There's a DrawingArea widget:
> 
>     http://www.pygtk.org/pygtk2tutorial/ch-DrawingArea.html
> 
> I'm not sure about the rulers, though. You'll probably need to cook that
> up yourself.

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).

-- 
Johannes


More information about the pygtk mailing list