* Antonio Prado <[EMAIL PROTECTED]> [2004-12-05 16:09]:
> Harry Wright <pygtk at avernus.org.uk>
> >Is there a better way to do autocompletion in a combobox than what I
> >have done in the code below (attached an EntryCompletion to the entry
> >box in the ComboBoxEntry). This works, but it seems a bit odd having a
> >both a pop-down list from the combobox and a pop-up list for the
> >autocompletion. Can it be done using just the combobox somehow?
> >
> >Also, is there any simple way to restrict the user to only entering text
> >in the list, without manually checking each character as it is entered?
> >
> 
> How you it solved this?

I "solved" it by redesigning my application -- I got rid of the
ComboBoxEntry and just use an Entry with an EntryCompletion. This is a
lot easier to use than a drop-down box with hundreds of entries.
Fortunately, my users (both of them!) know what they are going to enter,
so they don't need to see every choice in advance.

As for the 2nd question, I now check the text after it is entered. This
is more sensible for my application -- if something is entered that
isn't on the list, it probably should be added to the list.

Sorry -- none of this probably helps you much :-(

Harry.

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to