/usr/share/doc/tcl-snack-doc/examples/python/oggplay.py is in tcl-snack-doc 2.2.10.20090623-dfsg-4.
This file is owned by root:root, with mode 0o755.
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 17 18 19 20 21 22 | #! /usr/bin/env python
#
# Usage: oggplay.py file.ogg
#
# Note: this script will also play audio files in any other format supported
# by tkSnack
import sys
from Tkinter import *
from tkSnack import *
initializeSnack(Tkinter.Tk())
# Load the Ogg/Vorbis format package
Tk().tk.eval('package require snackogg')
if sys.argv[1:]:
snd = Sound(file=sys.argv[1])
snd.play(blocking=1)
else:
print "Usage: oggplay.py file.ogg"
|