learning GtkLayout, drawing a widget on it.

2012-08-19 Thread ben
Hello list, It may be a basic and common question, but i dare to ask... I began to write a custom widget, subclassing GtkDrawingArea, and i am not familiar enough to gtk to draw this widget on a GtkLayout. I would not like to use a canvas library, since i would like to learn pure gtk and make

gtk3 + python : lookup_widget

2012-08-19 Thread Patrick Shirkey
Hi, I'm having a little trouble finding examples online of using the equivalent of lookup_widget() with gtk3 + python. For example in the following code what is the best way to modify the message label after the commandline callback is sent? Should I be using globals or a glade file or is there

Re: gtk3 + python : lookup_widget

2012-08-19 Thread Tristan Van Berkom
The lookup_widget() paradigm comes from a very old time when we had very poor tools and actually it originates from people using generated code from the original Glade tool (Glade versions 1 and 2). Ideally, as specially as you are using python, your application should be modular. Perhaps you

Re: gtk3 + python : lookup_widget

2012-08-19 Thread Tristan Van Berkom
On Mon, Aug 20, 2012 at 1:59 PM, Tristan Van Berkom t...@gnome.org wrote: The lookup_widget() paradigm comes from a very old time when we had very poor tools and actually it originates from people using generated code from the original Glade tool (Glade versions 1 and 2). Correction, that

Re: gtk3 + python : lookup_widget

2012-08-19 Thread Patrick Shirkey
On Mon, August 20, 2012 6:59 am, Tristan Van Berkom wrote: The lookup_widget() paradigm comes from a very old time when we had very poor tools and actually it originates from people using generated code from the original Glade tool (Glade versions 1 and 2). Ideally, as specially as you