jeudi 22 décembre 2016

How to get the state of checkbox which is the listview_item

Here is my code:

list_view = ruleset_form.TSettingsListView
ctrl = list_view.WrapperObject()
list_view = ListViewWrapper(ctrl)

I can't get a checkbox http://take.ms/PLeZR Variants which are 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'




Aucun commentaire:

Enregistrer un commentaire