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 窗口被关闭报错的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-24Python编程基础详解
- 2024-11-21Python编程基础教程
- 2024-11-20Python编程基础与实践
- 2024-11-20Python编程基础与高级应用
- 2024-11-19Python 基础编程教程
- 2024-11-19Python基础入门教程
- 2024-11-17在FastAPI项目中添加一个生产级别的数据库——本地环境搭建指南
- 2024-11-16`PyMuPDF4LLM`:提取PDF数据的神器
- 2024-11-16四种数据科学Web界面框架快速对比:Rio、Reflex、Streamlit和Plotly Dash
- 2024-11-14获取参数学习:Python编程入门教程