20 lines
305 B
Python
20 lines
305 B
Python
import gobject
|
|
import sys
|
|
import thread
|
|
|
|
from song import Song
|
|
from cline import CLine
|
|
|
|
def main(argv):
|
|
commands = CLine()
|
|
|
|
s = Song(argv[0])
|
|
s.play()
|
|
|
|
# Start main loop as a thread
|
|
mainloop = gobject.MainLoop()
|
|
thread.start_new_thread(mainloop.run,())
|
|
|
|
|
|
if __name__=='__main__':main(sys.argv[1:])
|