python - How to get the state of checkbox which is the listview_item -


here code:

list_view = ruleset_form.tsettingslistview ctrl = list_view.wrapperobject() list_view = listviewwrapper(ctrl) 

i can't checkbox http://take.ms/plezr variants presented below don't work:

1)

ctrl = list_view.items()[2].wrapperobject() checkbox = buttonwrapper(ctrl) 

output is: attributeerror: '_listview_item' object has no attribute 'wrapperobject'

2)

ctrl = list_view.getitem(i,3).wrapperobject() checkbox = buttonwrapper(ctrl) 

output is: attributeerror: '_listview_item' object has no attribute 'wrapperobject'

3)

ctrl = list_view.getitem(i,3).item().wrapperobject() checkbox = buttonwrapper(ctrl) 

output is: attributeerror: 'lvitemw' object has no attribute 'wrapperobject'

4)

checkbox = buttonwrapper(list_view.getitem(i,3).listview_ctrl) 

output always: 0


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -