Code: Select all
| | | | | | | | ListBox - 'Team' (L381, T265, R513, B285)
| | | | | | | | ['Team2', 'TeamListBox', 'ListBox']
| | | | | | | | child_window(title="Team", control_type="List")
| | | | | | | | |
| | | | | | | | | CheckBox - 'Team' (L381, T265, R513, B285)
| | | | | | | | | ['Team3', 'TeamCheckBox', 'CheckBox', 'TeamCheckBox0', 'TeamCheckBox1', 'CheckBox0', 'CheckBox1']
| | | | | | | | | child_window(title="Team", control_type="CheckBox")
| | | | | | | | |
| | | | | | | | | CheckBox - 'Team' (L381, T265, R513, B285)
| | | | | | | | | ['Team3', 'TeamCheckBox', 'CheckBox', 'TeamCheckBox0', 'TeamCheckBox1', 'CheckBox0', 'CheckBox1']
| | | | | | | | | child_window(title="Team", control_type="CheckBox")
| | | | | | | | |
| | | | | | | | | CheckBox - 'Team' (L381, T265, R513, B285)
| | | | | | | | | ['Team3', 'TeamCheckBox', 'CheckBox', 'TeamCheckBox0', 'TeamCheckBox1', 'CheckBox0', 'CheckBox1']
| | | | | | | | | child_window(title="Team", control_type="CheckBox")
| | | | | | | | |
| | | | | | | | | CheckBox - 'Team' (L381, T265, R513, B285)
| | | | | | | | | ['Team3', 'TeamCheckBox', 'CheckBox', 'TeamCheckBox0', 'TeamCheckBox1', 'CheckBox0', 'CheckBox1']
| | | | | | | | | child_window(title="Team", control_type="CheckBox")
Code: Select all
print(dlg_spec.TeamListBox.item_count())
dlg_spec.TeamListBox.select(2, select=True)
< /code>
Die Ausgabe: < /p>
26
Traceback (most recent call last):
dlg_spec.TeamListBox.select(2, select=True)
TypeError: select() got an unexpected keyword argument 'select'