Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#6 non english charactor menu cannot open.

open
nobody
None
5
2007-05-30
2007-05-30
lxh
No

pwin.MenuSelect("Image->Attributes") -->ok
pwin.MenuSelect("图像->属性") -->error.

>>>
Traceback (most recent call last):
File "E:\dev\download\pywinauto-0.3.7\examples\mspaint.py", line 53, in ?
pwin.MenuSelect("图像->属性")
File "d:\python24\Lib\site-packages\pywinauto\application.py", line 253, in __getattr__
ctrls = _resolve_control(
File "d:\python24\Lib\site-packages\pywinauto\application.py", line 921, in _resolve_control
raise e.original_exception
WindowNotFoundError
>>>

Discussion

  • Mark Mc Mahon
    Mark Mc Mahon
    2009-11-21

    You need to pass Unicode strings.

    Can you try again with unicode strings?