GUI ComboBox

#1

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

0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

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__)
2 Likes

#5

Thanks!!

0 Likes

#7

not work on stable ???

0 Likes

#8

Not added, yet.

0 Likes