GUI ComboBox

Why Isn’t there a combobox ? or can i make lists scrollable ?

I could probably add combo boxes in the future. What do you need it for?

Because i can gain much more space and i currently have to calculate height of the lists and add to y of all elements that needs to be below that list

This will be available in the next version.

from phBot import *
import QtBind

gui = QtBind.init(__name__, 'GUI Example')
combo = QtBind.createCombobox(gui, 10, 200, 120, 20)
QtBind.append(gui, combo, "test 1")
QtBind.append(gui, combo, "test 2")
QtBind.append(gui, combo, "test 3")

log('%d' % QtBind.currentIndex(gui, combo))
log('%s' % QtBind.text(gui, combo))

log('[%s] Loaded' % __name__)


not work on stable ???

Not added, yet.

1 Like