![]() |
Python_2
1.0
|
tkmpg123 - keep mpg123 and Tk happily eventing w/o blocking. More...
Classes | |
class | playerState |
Functions | |
def | init (loc) |
def | createMenu (loc) |
def | buildPlayer (loc, ivol) |
def | pause () |
def | kill (pid) |
def | stop () |
def | preferences () |
def | click (event) |
def | about (e=None) |
def | play_file () |
def | play_url (e=None) |
def | readm3u (m3u) |
def | aplay (song) |
def | clear (e=None) |
def | getUser () |
def | list_entry_clicked (event) |
def | fini (msg="") |
def | ctm (s) |
def | start_play (song="") |
def | main (argv=None) |
Variables | |
int | pid = 0 |
bool | state = False |
string | csong = "" |
mw = Tk() | |
c = Canvas() | |
tkmpg123 - keep mpg123 and Tk happily eventing w/o blocking.
def _10_tkmpg123.about | ( | e = None | ) |
Shows usage messages.
Referenced by _09_tkhanoi.init().
def _10_tkmpg123.aplay | ( | song | ) |
Saves the song in the Dialog Box and plays it.
References readm3u().
Referenced by main(), play_file(), play_url(), and readm3u().
def _10_tkmpg123.buildPlayer | ( | loc, | |
ivol | |||
) |
Builds the skin of our player.
Referenced by main().
def _10_tkmpg123.clear | ( | e = None | ) |
Clears the Listbox.
Referenced by _05b_dns.main(), and _06_ping.main().
def _10_tkmpg123.click | ( | event | ) |
Treats the mouse click event.
def _10_tkmpg123.createMenu | ( | loc | ) |
Referenced by main().
def _10_tkmpg123.ctm | ( | s | ) |
Returns the elapsed time.
Referenced by list_entry_clicked().
def _10_tkmpg123.getUser | ( | ) |
Returns the user running the player.
Referenced by init().
def _10_tkmpg123.kill | ( | pid | ) |
kill function for Win32
Referenced by stop().
def _10_tkmpg123.list_entry_clicked | ( | event | ) |
Plays the current selection.
References ctm(), and start_play().
def _10_tkmpg123.main | ( | argv = None | ) |
Main program.
References aplay(), buildPlayer(), createMenu(), fini(), and init().
def _10_tkmpg123.pause | ( | ) |
Pauses the song.
References start_play(), and stop().
def _10_tkmpg123.play_file | ( | ) |
Creates a tkFileDialog for selecting a song.
References aplay().
def _10_tkmpg123.play_url | ( | e = None | ) |
Enters a given URL for being played.
References aplay().
def _10_tkmpg123.preferences | ( | ) |
Sets the player preferences.
def _10_tkmpg123.readm3u | ( | m3u | ) |
def _10_tkmpg123.start_play | ( | song = "" | ) |
Starts a process for playing the given song.
References stop().
Referenced by list_entry_clicked(), and pause().
def _10_tkmpg123.stop | ( | ) |
Stops the song, by killing the player process.
References kill().
Referenced by fini(), pause(), and start_play().
_10_tkmpg123.c = Canvas() |
string _10_tkmpg123.csong = "" |
_10_tkmpg123.mw = Tk() |
int _10_tkmpg123.pid = 0 |
bool _10_tkmpg123.state = False |
Referenced by _07_alarme_class.main().