Overview Scripts tileedit | leveledit | tganew | levelfancy Reference algo | ani | engine | fonts | high | html | layout | text | timer | vid Tutorials 1 | 2 | 3 | 4 | 5 GUI Ref. theme | style | widget | surface | const Containers container | app | table | document | area Forms form | group Widgets basic | button | input | keysym | slider | select | misc Other menus | dialog Tutorials 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
gui.select
Select
A select input.
Select(value=None)
w = Select(value="goats") w.add("Cats","cats") w.add("Goats","goats") w.add("Dogs","Dogs") w.value = 'dogs' #changes the value from goats to dogs Select.add
Add a widget, value item to the Select.
Select.add(widget,value=None)
w = Select() w.add("Goat") #adds a Label w.add("Goat","goat") #adds a Label with the value goat w.add(gui.Label("Cuzco"),"goat") #adds a Label with value goat |