最近在学pywinauto,各位帮忙看下,实在搞不懂这个到底是为什么出错了
前面启动程序都是正常的
maindlg=app['文本']
childwindow = maindlg.child_window(title="选择新命令.", control_type="StatusBar")
childwindow['Edit2'].set_text('test') #到这里会报错,这里想做的是在编辑框内输入文本
AttributeError: The control does not have a getitem method for item access (i.e. ctrl[key]) so maybe you have requested this in error?
怎样才能实现在编辑框内输入文本?
不知道你这个问题是否已经解决, 如果还没有解决的话: