Re: [pygtk] why doesnt signal_connect return an id
On Mon, 26 Mar 2001, Anthony Tekatch wrote: > > Well I managed to solve the problem by creating a semaphore/flag that can be checked >by the signal handler function. I suppose this will do for now. > > What do you mean by "connect the signals manually" ? calling the get_widget() method of the GladeXML object to get a reference to the widget, then calling connect() for each signal you want. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] why doesnt signal_connect return an id
Well I managed to solve the problem by creating a semaphore/flag that can be checked by the signal handler function. I suppose this will do for now. What do you mean by "connect the signals manually" ? Thanks > > I want to use the id generated from a signal connect in signal_handler_block(id) >but signal_connect returns None. > > > > testsignal = widgets.signal_connect("on_entry2_changed", calculate.top) > > print testsignal > > Because it potentially connects more than one signal. Unfortunately, this > makes it a bit difficult to use signal_handler_block. Alternatively, you > could connect the signals manually if this is a problem. > > James. > > -- > Email: [EMAIL PROTECTED] > WWW: http://www.daa.com.au/~james/ -- Anthony Tekatch use [EMAIL PROTECTED] if your mail is rejected ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] why doesnt signal_connect return an id
On Mon, 26 Mar 2001, Anthony Tekatch wrote: > > I want to use the id generated from a signal connect in signal_handler_block(id) but >signal_connect returns None. > > testsignal = widgets.signal_connect("on_entry2_changed", calculate.top) > print testsignal Because it potentially connects more than one signal. Unfortunately, this makes it a bit difficult to use signal_handler_block. Alternatively, you could connect the signals manually if this is a problem. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] why doesnt signal_connect return an id
I want to use the id generated from a signal connect in signal_handler_block(id) but signal_connect returns None. testsignal = widgets.signal_connect("on_entry2_changed", calculate.top) print testsignal -- Anthony Tekatch use [EMAIL PROTECTED] if your mail is rejected ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] How to get widget size
On Mon, 26 Mar 2001, Eduardo Ferro wrote: > Hi! > > I need to get the "actual" widget size of a Window, but when i > request the size with size_request() it return me the minimal size > that can use this widget :-? That is the correct behaviour for the size_request() method (it returns the ammount of space the widget requests). You want the space allocated to the widget. That can be found with the get_allocation() method: x, y, width, height = widget.get_allocation() James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] How to get widget size
Hi! I need to get the "actual" widget size of a Window, but when i request the size with size_request() it return me the minimal size that can use this widget :-? Someone knows how can i get this value??? Thanks in advance -- Hasta otra! Eduardo Ferro Aldama [EMAIL PROTECTED] (Linux User 44335) La web del GLUB http://glub.ehu.es/ Grupo Linux Usuarios de Bizkaia 640K ought to be enough for anybody. - Bill Gates, 1981 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] set_clip_rectangle patch ...
Here is a patch to gnome-python-1.4.0 to add set_clip_rectangle to the methods of a GC in order to enable clipping without creating pixmaps. It's basically just adds a passthrough to gdk_gc_set_clip_rectangle. Enjoy. Andy L. _ Get your FREE download of MSN Explorer at http://explorer.msn.com gnome-python-1.4.0-set_clip_rectangle.patch