/usr/share/k3d/scripts/user_interface.py is in k3d-data 0.8.0.3-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #python
import k3d
k3d.ui().message("This is a message!")
k3d.ui().warning_message("This is a warning message!")
k3d.ui().error_message("This is an error message!")
result = k3d.ui().query_message("Pick one!", ["Choice 1", "Choice 2", "Choice 3"])
k3d.ui().message("You chose " + str(result))
result = k3d.ui().get_file_path("read", "test", "Choose file to read (doesn't actually read anything):", "")
k3d.ui().message("You chose " + str(result))
result = k3d.ui().get_file_path("write", "test", "Choose file to write (doesn't actually write anything):", "")
k3d.ui().message("You chose " + str(result))
|