Do you have any more luck if you use the activate signal?  This gets
called when the return key is pressed.  Maybe using connect_after for this
will get it called after the GnomeEntry code saves the history.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Fri, 12 Nov 1999, Daniel Kornhauser wrote:

> Hi pygs users:
> 
> I'm trying to use a GnomeEntry, but I'am having trouble ereasing and
> keeping the history.
> 
> For example if you run the attach gnomeentry.py and you write:
> fd 1 <press return>
> (delete fd 1)
> fd 2 <press return>
> (delete fd 2)
> fd 3 <press return>
> 
> and press the little arrow you see the history and I works ok :-).
> 
> But, I want to erase the GtkEntry contents after y press return to be
> ready for new input.
> 
> so I introduced  item.set_text("") in the call back.
> 
> But if you run the attach gnomeentry_delete.py and you write:
> fd 1 <press return>
> fd 2 <press return>
> fd 3 <press return>
> 
> The history isn't logged any more :-(.
> 
> I tried to use a connect_after to bind the callback and the GnomeEntry but
> I get weirdier: if you press space the contents of the GtkEntry are logged 
> ??? 
> 
> Check how gnomeentry_delete_after.py history saves "fd" for no "reason"
> when you enter:
> 
> fd 1 <press return>
> fd 2 <press return>
> fd 3 <press return>
> 
>       I would be very greatfull for any help.
> 
>                                       Daniel Kornhauser.
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to