Форум сайта python.su
#!/usr/bin/python3 import PyZenity print(PyZenity.List(["Выбор","Данные"],title=None,boolstyle="radiolist",editable=False,sep='|',data=[["","Unstoppable"],["","Unforgivable"],["","Unthinkable"]]))
Traceback (most recent call last): File "/usr/local/bin/tst.py", line 5, in <module> print(PyZenity.List(["Выбор","Данные"],title=None,boolstyle="radiolist",editable=False,sep='|',data=[["","Unstoppable"],["","Unforgivable"],["","Unthinkable"]])) File "/usr/local/lib/python3.1/dist-packages/PyZenity.py", line 204, in List return p.stdout.read().strip().split(sep) TypeError: Type str doesn't support the buffer API
Офлайн
Похоже, что PyZenity не адаптирован для 3-го питона.
Попробуй заменить в файле PyZenity.py:
def run_zenity(type, *args): return Popen([zen_exec, type] + list(args), stdin=PIPE, stdout=PIPE)
def run_zenity(type, *args): return Popen([zen_exec, type] + list(args), stdin=PIPE, stdout=PIPE, universal_newlines=True)
Офлайн