Re: [pygtk] Writting a widget with native scrolling support

2008-10-23 Thread Laszlo Nagy
Gustavo J. A. M. Carneiro wrote: http://www.daa.com.au/pipermail/pygtk/2006-January/011668.html Yes, this was the only related post that I could find on the internet. But I could not use it for anything because it does not tell how to do it. It says: For custom widgets, check the method

[pygtk] Writting a widget with native scrolling support

2008-10-20 Thread Laszlo Nagy
I want to write an owner-drawn widget (using Cairo) with native scrolling capabilities. Let's say this widget has a get_hadjustment() and a get_vadjustment() method. Scrolling inside the widget is already implemented. E.g. the widget draws different things on its surface, depending on the

Re: [pygtk] gtk.Table + Scrolledwindow with permanent headers?

2008-09-29 Thread Laszlo Nagy
Paul Malherbe írta: Hi Attached is a grid class I wrote which may help you. I'm sorry I did not have time to look at it until now. It works just fine. I need some more time because I'm a bit new to pygtk. I hope it will work with hscroll + vscroll at the very same time. Thank you, Laszlo

[pygtk] gtk.Table + Scrolledwindow with permanent headers?

2008-09-26 Thread Laszlo Nagy
I have a gtk.Table inside a scrolled window. I have many rows and columns in the Table. Each cell in the table contains a widget (typically a button, but not necessarily.) Some of the cells on the edges of the table are headers. They should always be visible even when the user scrolls in the

[pygtk] How to subclass gobject.GObject

2008-09-03 Thread Laszlo Nagy
Hi All, I'm working on a special non visual component that allows moving widgets between container with drag-and-drop. It is almost ready. I only need to add events like widget_moving and widget_moved etc. Currently, my non-visual component is based on object. I think I need to subclass it