On Sat, 2002-05-04 at 18:41, James Henstridge wrote:

> Try upgrading to gnome-python-1.4.2 (which includes pygtk-0.6.9).

Ok, now I can use w2c without it crashing. However, it doesn't actually
seem to do anything with the coordinates.

If I say:

(x1, y1) = mycanvas.w2c(x,y)

then it just passes through the values of x and y.

I'm not sure if I'm doing something wrong with the canvas. I have a
glade app which has a canvas. I want to drag and drop objects into the
canvas. When I size the canvas, it seems to widen the space on both
sides, so the objects remain centered. But this means that as I size the
window, the DND's are more and more out of whack.

Is there some specific procedure for setting up a canvas, or are the
defaults as set by libglade good enough? Do I have to set the scroll
region?

I haven't seen much thorough docs on the canvas, so I'm kind of
experimenting here.

TIA,
  Colin

 
-- 
Colin Fox                                       [EMAIL PROTECTED]
CF Consulting Inc.                                    GPG Fingerprint:
                    D8F0 84E7 E7CC 5C6C 9982  F1A7 A3EB 6EA3 BC97 572F

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to