/usr/share/doc/tcl-snack-doc/examples/python/dataCmd.py is in tcl-snack-doc 2.2.10.20090623-dfsg-6.
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 | #! /usr/bin/env python
# -*- coding: iso-8859-1 -*-
import sys
if sys.version_info[0] == 2:
import Tkinter
else:
import tkinter as Tkinter
import tkSnack
root = Tkinter.Tk()
tkSnack.initializeSnack(root)
s = tkSnack.Sound()
data = open('ex1.wav', 'rb').read()
s.data(data)
s.write('copy.wav')
|