1#! /usr/bin/env python
2#
3# Usage: oggplay.py file.ogg
4#
5# Note: this script will also play audio files in any other format supported
6# by tkSnack
7
8import sys
9from Tkinter import *
10from tkSnack import *
11
12initializeSnack(Tkinter.Tk())
13
14# Load the Ogg/Vorbis format package
15
16Tk().tk.eval('package require snackogg')
17
18if sys.argv[1:]:
19	snd = Sound(file=sys.argv[1])
20	snd.play(blocking=1)
21else:
22	print "Usage: oggplay.py file.ogg"
23