Vihan Pandey wrote:
Hello,
i'm having some trouble trying to move a custom widget(in this case an ellipse) in the Drawing Area. It seems to get the required mouse click and motion signals but does not move.

Check out,
http://cvs.gnome.org/viewcvs/gnome-python/pygtk/examples/gtk/widget.py?view=markup

Which is a simple GtkWidget subclass which can be used as a template.
I just added some comments to make it easier to understand what the
actual methods does.

In your case, just change the do_expose_event to draw an ellipse instead of
a label and a border.

Johan
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to