I’m working on a custom dialog for Deadline. I need a multi-select listbox similar to a QListview
/QListwidget
.
I’m able to create one via
DeadlineScriptDialog.AddControlToGrid( "MyListBox", "MultiSelectListControl", "", 3, 1 )
and it works as expected from the user’s perspective. However, I would like to set a few selections by default but I can’t figure out how. Do I need to accomplish this via the widget’s model?
I see that it inherits from QComboBox
but that doesn’t support multi-selection.
Looking at all the functions of the class, the only thing that’s suggestive is setTheItems()
however, passing it a list of strings to select doesn’t work (and doesn’t raise an error).
All the files in /opt/Thinkbox/Deadline10/bin/UI/DeadlineUI
are .pyc
's
Thanks,
Jesse