![]() |
Python_2
1.0
|
A simple tkinter interface for fmtools, with lirc and recording support. More...
Classes | |
class | FMRec |
class | IRRec |
class | radioState |
Functions | |
def | init (loc, player='mplayer') |
def | killProc (pid) |
def | start_irrec () |
def | set_rec_type () |
def | execmd (cmd) |
def | radio (cmd) |
def | getStation (frequency) |
def | setCurStation (frequency) |
def | internetRadio (freq) |
def | setstation () |
def | setStation (ind) |
def | changeStation (st) |
def | fini () |
def | mute () |
def | enter () |
def | readStations () |
def | next (e=None) |
def | previous (e=None) |
def | trigger () |
def | net () |
def | loop () |
def | loopon () |
def | chn () |
def | rec () |
def | rec_on () |
def | rec_off () |
def | getFreq (s) |
def | mouse_leave (event) |
def | mouse_enter (event) |
def | str2num (datum) |
def | getpid (proc) |
def | help (e=None) |
def | main (argv=None) |
Variables | |
bool | use_lirc = True |
bool | use_notify = True |
bool | use_Notify = False |
notification = Notify() | |
list | stations |
list | radbut = stations[4][1] |
int | ivolume = 100 |
bool | state = False |
int | blocking = 0 |
int | tid = 0 |
int | lid = 0 |
fmrec = None | |
irrec = None | |
int | mpid = 0 |
int | message = 0 |
A simple tkinter interface for fmtools, with lirc and recording support.
The radio is turned off on exit.
def _11_tkradio.changeStation | ( | st | ) |
Set the station to the given station.
References internetRadio(), and radio().
Referenced by enter(), next(), previous(), setstation(), and setStation().
def _11_tkradio.chn | ( | ) |
Set the sound channel.
Referenced by main().
def _11_tkradio.enter | ( | ) |
References changeStation(), getStation(), and setCurStation().
def _11_tkradio.fini | ( | ) |
Quit the radio.
References killProc(), and radio().
Referenced by main(), and _11_tkradio.IRRec.run().
def _11_tkradio.getFreq | ( | s | ) |
Returns the frequency of a station.
Referenced by main(), mouse_enter(), and mouse_leave().
def _11_tkradio.getpid | ( | proc | ) |
Return the ID of the given process.
References str2num().
Referenced by main(), set_rec_type(), and start_irrec().
def _11_tkradio.getStation | ( | frequency | ) |
Return the frequency index.
Referenced by enter(), and setCurStation().
def _11_tkradio.help | ( | e = None | ) |
Enters a given URL for being played.
Referenced by main().
def _11_tkradio.init | ( | loc, | |
player = 'mplayer' |
|||
) |
Referenced by main().
def _11_tkradio.internetRadio | ( | freq | ) |
def _11_tkradio.killProc | ( | pid | ) |
Kill the given process.
Referenced by fini(), internetRadio(), loop(), net(), radio(), and _11_tkradio.FMRec.stop().
def _11_tkradio.loop | ( | ) |
Route the capture sources on the sound card back in as PCM audio.
References killProc().
def _11_tkradio.loopon | ( | ) |
def _11_tkradio.main | ( | argv = None | ) |
Main program.
References chn(), fini(), getFreq(), getpid(), help(), init(), loop(), mute(), readStations(), set_rec_type(), and start_irrec().
def _11_tkradio.mouse_enter | ( | event | ) |
Respond to mouse enter events.
References getFreq().
def _11_tkradio.mouse_leave | ( | event | ) |
Respond to mouse leave events.
References getFreq().
def _11_tkradio.mute | ( | ) |
def _11_tkradio.net | ( | ) |
Activate the internet radio.
References execmd(), internetRadio(), killProc(), and loop().
def _11_tkradio.next | ( | e = None | ) |
References changeStation().
Referenced by _05e_pascal_zip.main(), and _11_tkradio.IRRec.run().
def _11_tkradio.previous | ( | e = None | ) |
References changeStation().
Referenced by _11_tkradio.IRRec.run().
def _11_tkradio.radio | ( | cmd | ) |
Send the given command to the radio.
References execmd(), killProc(), and setstation().
Referenced by changeStation(), fini(), mute(), and _11_tkradio.IRRec.run().
def _11_tkradio.readStations | ( | ) |
Read the preset station file.
Referenced by main().
def _11_tkradio.rec_off | ( | ) |
Turn the recorder off.
Referenced by rec(), and _11_tkradio.IRRec.run().
def _11_tkradio.rec_on | ( | ) |
def _11_tkradio.set_rec_type | ( | ) |
def _11_tkradio.setCurStation | ( | frequency | ) |
Update the current station.
References getStation().
Referenced by enter(), setstation(), and setStation().
def _11_tkradio.setstation | ( | ) |
Set the station chosen via Radio Button.
References changeStation(), and setCurStation().
Referenced by radio().
def _11_tkradio.setStation | ( | ind | ) |
Set the station to ind.
References changeStation(), and setCurStation().
Referenced by _11_tkradio.IRRec.run().
def _11_tkradio.start_irrec | ( | ) |
def _11_tkradio.str2num | ( | datum | ) |
A conversion function that "guesses" the best conversion.
Referenced by getpid().
def _11_tkradio.trigger | ( | ) |
Create a thread for recording.
Referenced by rec_on().
int _11_tkradio.blocking = 0 |
_11_tkradio.fmrec = None |
_11_tkradio.irrec = None |
int _11_tkradio.ivolume = 100 |
int _11_tkradio.lid = 0 |
int _11_tkradio.message = 0 |
int _11_tkradio.mpid = 0 |
_11_tkradio.notification = Notify() |
list _11_tkradio.radbut = stations[4][1] |
bool _11_tkradio.state = False |
list _11_tkradio.stations |
int _11_tkradio.tid = 0 |
bool _11_tkradio.use_lirc = True |
bool _11_tkradio.use_notify = True |
bool _11_tkradio.use_Notify = False |