ListBox with autocomplete function

Hello,

Iam a new os scripts, I start now with python, I need a function that I can not find anywhere (I do not know if it exists).

I need to create a “listbox” with autocomplete function, when I start typing automatically search within the list.

Any tip?

@MatrixRatrix, are you on mac or windows ?

_
c.

The ETO ComboBox control supports an AutoComplete property if you’re able to use that as a substitution for a ListBox.

I am on windons.

Sorry , I am new on this, I already read some thing about Eto, but I read that is only for rhino6, this is possible with rhino5?

@MatrixRatrix,

you might try below ComboBox as a starting point.

ComboBoxAutoComplete.py (5.7 KB)

_
c.

2 Likes

Thank you clement, tomorow I test.

And ETO ? there is some way to install on rhino5?

@MatrixRatrix,

Unfortunately Eto does not work with Rhino 5. But you can try below script in Rhino 6:

ETO_ComboBoxAutoComplete.py (4.1 KB)

_
c.

Thank you.

I can not test today, but tomorrow I test.

I know it will get out of the topic, but I’ll take advantage to ask another question.
I need to access a MySql database, does it have some lib for the rhino? like PyMysql or MySqldb?

@MatrixRatrix, please create a new topic, preferably with a (small) example file.

_
c.

:+1::+1::+1:

ComboBox autocomplete solve, tank you.