Ich kann meine Kontrollkästchen mit Pywinauto nicht auswählenPython

Python-Programme
Guest
 Ich kann meine Kontrollkästchen mit Pywinauto nicht auswählen

Post by Guest »

Ich versuche, mit Windows mit Pywinauto zu interagieren.

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")
, aber ich konnte die zu überprüfen oder klicken nicht auswählen. Br />

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'

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post