python 窗口被关闭报错

2021/7/15 9:06:14

本文主要是介绍python 窗口被关闭报错,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

['Traceback (most recent call last):\n', '  File "C:\\Python38\\lib\\site-packages\\pywinauto\\application.py", line 248, in __resolve_control\n    ctrl = wait_until_passes(\n', '  File "C:\\Python38\\lib\\site-packages\\pywinauto\\timings.py", line 458, in wait_until_passes\n    raise err\n', 'pywinauto.timings.TimeoutError\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "F:\\GZH\\easyquant\\easyquant\\strategy\\strategyTemplate.py", line 73, in run\n    self.strategy(event)\n', '  File "F:\\GZH\\easyquant\\strategies\\策略1回调.py", line 53, in strategy\n    get_positions_status = self.get_positions_status(data)\n', '  File "F:\\GZH\\easyquant\\strategies\\策略1回调.py", line 222, in get_positions_status\n    positions = self.user.position\n', '  File "C:\\Python38\\lib\\site-packages\\easytrader\\clienttrader.py", line 146, in position\n    self._switch_left_menus(["查询[F4]", "资金股票"])\n', '  File "C:\\Python38\\lib\\site-packages\\easytrader\\utils\\perf.py", line 18, in wrapper\n    return f(*args, **kwargs)\n', '  File "C:\\Python38\\lib\\site-packages\\easytrader\\clienttrader.py", line 522, in _switch_left_menus\n    self._get_left_menus_handle().get_item(path).select()\n', '  File "C:\\Python38\\lib\\site-packages\\pywinauto\\application.py", line 362, in __getattribute__\n    ctrls = self.__resolve_control(self.criteria)\n', '  File "C:\\Python38\\lib\\site-packages\\pywinauto\\application.py", line 259, in __resolve_control\n    raise e.original_exception\n', '  File "C:\\Python38\\lib\\site-packages\\pywinauto\\timings.py", line 436, in wait_until_passes\n    func_val = func(*args, **kwargs)\n', '  File "C:\\Python38\\lib\\site-packages\\pywinauto\\application.py", line 201, in __get_ctrl\n    dialog = self.backend.generic_wrapper_class(findwindows.find_element(**criteria[0]))\n', '  File "C:\\Python38\\lib\\site-packages\\pywinauto\\findwindows.py", line 87, in find_element\n    raise ElementNotFoundError(kwargs)\n', "pywinauto.findwindows.ElementNotFoundError: {'title': '网上股票交易系统5.0', 'backend': 'win32', 'process': 332152}\n"]



这篇关于python 窗口被关闭报错的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程