Jan-07-2019, 04:50 PM
I don't know pyforms, so I don't know if this fits with the "flow" of how it works, but I cobbled this together using the "base app" and the docs for the combo control (https://pyforms-gui.readthedocs.io/en/v4...ntrolcombo), and it seems to work:
from pyforms.basewidget import BaseWidget from pyforms.controls import ControlCombo class ComboTest(BaseWidget): def __init__(self, *args, **kwargs): super().__init__('Combo Box example') self._combo = ControlCombo() items = ["first", "second"] for item in items: self._combo.add_item(item) if __name__ == '__main__': from pyforms import start_app start_app(ComboTest)