pythondialog

Alex Kleider via Tutor <[email protected]> Sun, 10 Aug 2025 13:23:17 -0700
Newsgroups gmane.comp.python.tutor
Message-ID <CAMCEyD6wb4P_RaPj5Q_vGswt047YW27+zXWk8gbt-U8i-hs6Lg@mail.gmail.com>
Although not part of the Python standard library,
perhaps someone might be able to help with getting pythondialog running.
Following the tutorial
(https://pythondialog.sourceforge.io/doc/intro/intro.html) results in
an error/problem I've been unable to circumvent:

(gui)
[/home/alex] $ pip list
Package      Version
------------ -------
pip          25.2
pythondialog 3.5.3
setuptools   80.9.0
wheel        0.45.1
(gui)
[/home/alex] $ cat trydialog.py
#!/usr/bin/env python3

# File: trydialog.py

from dialog import Dialog

d = Dialog(dialog="dialog")
#"/home/alex/.virtualenvs/gui/lib/python3.11/site-packages/dialog.py")

code, tag = d.menu("Header Text",
                   choices = [
        ("Tag 1", "Item text 1"),
        ("Tag 1", "Item text 1"),
        ("Tag 1", "Item text 1"),
        ])

(gui)
[/home/alex] $ ./trydialog.py
Traceback (most recent call last):
  File "/home/alex/./trydialog.py", line 7, in <module>
    d = Dialog(dialog="dialog")
        ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/alex/.virtualenvs/gui/lib/python3.11/site-packages/dialog.py",
line 1019, in __init__
    self._dialog_prg = _path_to_executable(dialog)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/alex/.virtualenvs/gui/lib/python3.11/site-packages/dialog.py",
line 474, in _path_to_executable
    raise ExecutableNotFound(
dialog.ExecutableNotFound: Executable not found: can't find the
executable for the dialog-like program
(gui)
[/home/alex] $ ls -lA ~/.virtualenvs/gui/lib/python3.11/site-packages/
total 212
-rwxr-xr-x 1 alex alex 156498 Aug 10 11:39 dialog.py
drwxr-xr-x 3 alex alex   4096 Aug 10 11:38 _distutils_hack
-rw-r--r-- 1 alex alex    151 Aug 10 11:37 distutils-precedence.pth
drwxr-xr-x 5 alex alex   4096 Aug 10 11:39 pip
drwxr-xr-x 3 alex alex   4096 Aug 10 11:39 pip-25.2.dist-info
drwxr-xr-x 3 alex alex   4096 Aug 10 11:37 pkg_resources
drwxr-xr-x 2 alex alex   4096 Aug 10 11:39 __pycache__
drwxr-xr-x 2 alex alex   4096 Aug 10 11:39 pythondialog-3.5.3.dist-info
drwxr-xr-x 8 alex alex   4096 Aug 10 11:37 setuptools
drwxr-xr-x 3 alex alex   4096 Aug 10 11:37 setuptools-80.9.0.dist-info
-rw-r--r-- 1 alex alex      0 Aug 10 11:37 setuptools-80.9.0.virtualenv
-rw-r--r-- 1 alex alex     18 Aug 10 11:37 _virtualenv.pth
-rw-r--r-- 1 alex alex   4443 Aug 10 11:37 _virtualenv.py
drwxr-xr-x 4 alex alex   4096 Aug 10 11:37 wheel
drwxr-xr-x 2 alex alex   4096 Aug 10 11:37 wheel-0.45.1.dist-info
-rw-r--r-- 1 alex alex      0 Aug 10 11:37 wheel-0.45.1.virtualenv

The 'dialog' module was suggested to me by Alan G. in some
correspondence a couple of years ago.
All the best to everyone.

-- 
[email protected]
(sent from my current gizmo)
_______________________________________________
Tutor maillist  -  To unsubscribe send an email to [email protected]
To unsubscribe or change subscription options:
%(web_page_url)slistinfo/%(_internal_name)s