Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example error #5

Open
tellts opened this issue Feb 2, 2023 · 0 comments
Open

Example error #5

tellts opened this issue Feb 2, 2023 · 0 comments

Comments

@tellts
Copy link

tellts commented Feb 2, 2023

Microsoft Windows [Version 10.0.19044.2486]

import zenity

res,_ = zenity.show(zenity.question,text="Is it ok?")

if res:
print("it's ok")

PS E:\programmirovanie_dialogov> & C:/Python310/python.exe e:/programmirovanie_dialogov/test.py
"sudo"is not internal or external
command, executable program, or batch file.
Traceback (most recent call last):
File "e:\programmirovanie_dialogov\test.py", line 3, in
res,_ = zenity.show(zenity.question,text="Is it ok?")
TypeError: cannot unpack non-iterable bool object
PS E:\programmirovanie_dialogov>

https://pypi.org/project/Zenity/ This page has a word about Windows. Maybe some other version is needed?
Operating System
MacOS :: MacOS X
Microsoft :: Windows
OS Independent
POSIX
Programming Language
Python
Python :: 2.7
Python :: 3
Python :: 3.4
Python :: 3.5
Python :: 3.6
Python :: 3.7

I tried to run with Python 3.7. In this case, there was a message:
PS E:\programmirovanie_dialogov> & C:/Python37/python.exe e:/programmirovanie_dialogov/test.py
Traceback (most recent call last):
File "e:/programmirovanie_dialogov/test.py", line 3, in
res,_ = zenity.show(zenity.question,text="Is it ok?")
AttributeError: module 'zenity' has no attribute 'show'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant