On 27 Jul 2009, at 17:20, Timo wrote:
> Peyman schreef:
>> Hi, a while back I inquired about blocking signals, and we came to
>> the conclusion that via glade there is no way to get a hold of the
>> handler IDs, so we had to use handler_block_by_func(). At the
>> time handler_block_by_fu
Peyman schreef:
> Hi, a while back I inquired about blocking signals, and we came to the
> conclusion that via glade there is no way to get a hold of the handler
> IDs, so we had to use handler_block_by_func(). At the time
> handler_block_by_func() didn't even work for me under python. I have
Hi, a while back I inquired about blocking signals, and we came to the
conclusion that via glade there is no way to get a hold of the handler
IDs, so we had to use handler_block_by_func(). At the time
handler_block_by_func() didn't even work for me under python. I have
switched over to C, a
Hi
I keep coming back to this, and it is literally one of the biggest
problems bugging me. I have a button, attached to two callbacks via
glade. Here is the code
def on_button1_press_event(widget,data,wtree):
print "pressed"
def on_button1_release_event(widget,data,wtree):
pr
Hi Walter
Sorry I forgot to get back to you on this, I just gave up after a
while. I initially tried calling
widget.handler_unblock_by_func('name_of_callback_function') But get an
error to the effect of
-"TypeError: nothing connected to
Now I know for a fact that I'm using the correct hand
Hi,
Maybe I should just let some code do the talking. See attached script.
The button's "clicked" handler adds an "x" to the entry. The toggle
button uses handler_(un)block_by_func() on addx_clicked so that it is
only enabled if the toggle button is active. Note that
handler_(un)block_by_func
Hi Walter
I am running into problems using it. To use
handler_bloc_by_func(callable) you have to pass callable: a callable
python object. I have tried using the widget itself, and it's callback
functions, but neither is working. What exactly do i have to pass as a
parameter. You made refer
Hi,
It seems that this has been asked before:
http://osdir.com/ml/gnome.gtk+.python/2003-04/msg00089.html
Short answer: no, it doesn't seem like you can. I have, however, found
the handler_block_by_func() and handler_unblock_by_func() methods of
gobject.GObject. Although I haven't tested this
Hi Walter
I realize that once you call connect() it returns the handle_id. But
if glade is doing this for me, are the handle id's stored somewhere?
Surely there has to be a widget.get_handle_id('callback_function')
method. I can't seem to find anything on this over the net though.
Cheers
Hello Walter
That's exactly what I was looking for
Cheers
Peyman Askari
On 11 Mar 2009, at 07:56, Walter Leibbrandt wrote:
> Hi,
>
> Peyman wrote:
>> Hello
>>
>> Is there a clean way to temporarily cancel callbacks? For example
>> consider a combobox CB1 with the following callback functio
Hi,
Peyman wrote:
> Hello
>
> Is there a clean way to temporarily cancel callbacks? For example
> consider a combobox CB1 with the following callback function
>
> on_CB1_changed(...):
> someVar= the new entry
>
> now if I manually change the combobox to, for example "Select item", I
> do
Why not just modify the callback to ignore the entries? I think that
is all you can do.
Daniel
On Tue, Mar 10, 2009 at 13:29, Peyman wrote:
> Hello
>
> Is there a clean way to temporarily cancel callbacks? For example
> consider a combobox CB1 with the following callback function
>
> on_CB1_chan
Hello
Is there a clean way to temporarily cancel callbacks? For example
consider a combobox CB1 with the following callback function
on_CB1_changed(...):
someVar= the new entry
now if I manually change the combobox to, for example "Select item", I
don't want the changed signal to be
Thanks Steve and Christian. I could able to use buttons and also gain
all the signal handling routines provided by buttons, along with
button labels using pango markup language. I am able to appreciate
the design principles so far in whatever I am doing.
On Thu, 24 Mar 2005 07:20:42 -0300, Chr
On Wed, Mar 23, 2005 at 03:36:29PM -0800, Nalli Dinesh wrote:
> I am sure as of now, I don't want to use buttons with respect to
> labels, for one advantage that label provides over button, which is
> allowing pango markup language usable with the label names. You cannot
> use pango markup langauge
I am sure as of now, I don't want to use buttons with respect to
labels, for one advantage that label provides over button, which is
allowing pango markup language usable with the label names. You cannot
use pango markup langauge for button names.
And now, having decided that I want to use labels a
On Wed, 2005-03-23 at 17:48, Nalli Dinesh wrote:
> Thanks christian for providing a link, that helped me how to associate
> eventbox to the label and get the mouse events to be handled.
> I am running in to a different issue now that revolves around
> eventbox. I want to do the following, and I am
Thanks christian for providing a link, that helped me how to associate
eventbox to the label and get the mouse events to be handled.
I am running in to a different issue now that revolves around
eventbox. I want to do the following, and I am unable to crack it
down.
I have a label on my gtkwindow.
On Tue, Mar 22, 2005 at 02:51:51PM -0800, Nalli Dinesh wrote:
> I have labels spread across my screen developed using Glade. I need to
> add click signal to a label. Upon click I want to close the window or
> destroy the window. Or upon click i want to open up another window.
http://www.async
Hi,
I have labels spread across my screen developed using Glade. I need to
add click signal to a label. Upon click I want to close the window or
destroy the window. Or upon click i want to open up another window.
Thanks in advance
Dinesh
___
pygtk maili
"Eric Gillespie, Jr." wrote:
>
> On Tue, 17 Oct 2000 16:31:49 -0600,
> Joe Van Andel <[EMAIL PROTECTED]> said:
>
> > Unfortunately, I don't see how to do this. Glade is
> > creating three GtkMenuItem's associated with a GtkMenu. But
> > how do I retrieve the GtkMenuItem for a given c
On Tue, 17 Oct 2000 16:31:49 -0600,
Joe Van Andel <[EMAIL PROTECTED]> said:
> Unfortunately, I don't see how to do this. Glade is
> creating three GtkMenuItem's associated with a GtkMenu. But
> how do I retrieve the GtkMenuItem for a given choice? If I
> could retrieve each of the
I'm using Python 1.5.2, gnome-python-1.0.53, libgtk+1.2.8 with
glade-0.5.11 and libglade-0.14 on Redhat 6.2.
I've used 'glade' to build a user interface. My application has a
GtkOptionMenu (called 'filter_option') with three items. I want to
attach handlers that will be called when one of the m
23 matches
Mail list logo