Re: [pygtk] Doc/tutorial on creating custom widgets

2008-04-04 Thread Stephen Fairchild
On Friday 04 April 2008 22:31:26 Mitko Haralanov wrote: > Also, I wish > I could have the CheckButton be only the check box instead of the check > box and the space allocated to the label You can if you make a CheckButton with no label, pack it into a HBox, then pack a gtk.Label alongside with th

Re: [pygtk] Doc/tutorial on creating custom widgets

2008-04-04 Thread Mitko Haralanov
On Fri, 4 Apr 2008 13:02:47 -0700 Mitko Haralanov <[EMAIL PROTECTED]> wrote: > If I understand the mechanics correctly, what I will have to do is make > a custom "clicked" handler that gets the coordinates of the mouse when > a click occurs, if they are within the frame of the checkbutton, act on

Re: [pygtk] Doc/tutorial on creating custom widgets

2008-04-04 Thread Mitko Haralanov
On Fri, 4 Apr 2008 11:40:23 +0100 Stephen Fairchild <[EMAIL PROTECTED]> wrote: > Checkbuttons or any other widget can be embedded into a button face as this > small piece of code demonstrates. Passing on the button clicks is a bit more > involved but in this simple example is not necessary. Tha

Re: [pygtk] Doc/tutorial on creating custom widgets

2008-04-04 Thread Stephen Fairchild
On Thursday 03 April 2008 18:58:03 Mitko Haralanov wrote: > I am trying to create a custom widget that is basically a GtkButton but > along with the label it also has a checkbutton embedded into the button > face. Checkbuttons or any other widget can be embedded into a button face as this small p