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

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -