Hassan Aurag wrote:

> What kind of autocompletion you need:
>
> -from some gtkentry history, then gnomeentry can be used with pull
> down menus.

This kind.  Any way to do it without Gnome?  I'm using plain PyGtk
without Gnome, and I'd rather not start using full Gnome just for this
(but I will if I have to).

Does anyone have some example code (gnome or straight gtk) that I can
try out?

Sample code? Please?

Thanks!
 -lf11

>
> -or from sys commands like bash does? In this case you should have a
> look at python and how to enable it from python itself, by using
> set_completer from readline module. You'd have to write your own
> completer function though since the default if I remember will try to
> look for python commands.
>
> Have a look at readline and python info docs. Good luck
>
>
> On 08 Feb 2001 17:17:42 -0500, LF11 wrote:
>
> > I'm having a hell of a time trying to put together GtkEntry
>
> > auto-completion code.  How do I go about doing this, and *especially*
>
> > does anyone have code examples?
>
> >
>
> > By auto-completion, I mean the program takes what you've entered, tries
>
> > to find a suitable match, and adds its guess into the GtkEntry.  The
>
> > program's guess is selected, so when the user types another character,
>
> > the guess is deleted and the program tries again with the new user
>
> > input.
>
> >
>
> > Thank you Very Much!
>
> >
>
> > -lf11
>
> >
>
> >
>
> > _______________________________________________
>
> > pygtk mailing list   [EMAIL PROTECTED]
>
> > http://www.daa.com.au/mailman/listinfo/pygtk
>
> -----------------------------------------------------------------------
> Hassan Aurag
> CAE Electronics Ltd.
> Aircraft Systems Specialist - Update Group
> Email: [EMAIL PROTECTED]
> -----------------------------------------------------------------------
>
> Everyone is a genius. It's just that some people are too stupid to
> realize it.
> -----------------------------------------------------------------------
>


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to