Trees | Indices | Help |
---|
|
object --+ | MorseGenerator
Manages non-UI issues for Morse code generation: Interacts with the tone generator, regulates auto dot/dash generation speed.
|
|||
DotGenerator | |||
DashGenerator |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Start a sequence of dots or dashes. If auto-morse is False, only one dot or dash is produced per call. Else a dashes or dots are produced at an adjustable speed until stopMorseSeq() is called. Use setAutoMorse() to control whether single-shot or automatic sequences are produced. Use setSpeed() to set the speed at which the signals are generated. After stopMorseSeq() is called, use getRecentDots() or getRecentDashes() return the number of dots or dashes that were generated.
|
Stop a running sequence of dots or dashes. After this call, use getRecentDots() or getRecentDashes() to get a count of Morse elements (dots or dashes) that were emitted. If automatic Morse generation is disabled, it is not necessary to call this method. See setAutoMorse(). Called when mouse cursor leaves |
Determine whether dots and dashes are generated one at a time each time startMorseSeq() is called, or whether each call generates sequences of signals until stopMorseGenerator() is called.
|
Sets speed at which automatic dots and dashes are generated. Units are Herz. One cycle is a single dot, followed by the pause that separates two dots. Since that pause is standardized to be equal to a dot length, one can think of the speed as the number times the letter "i" is generated per second. The higher the number, the faster the dots/dashes are generated. Default is 3.3.
|
Sets the time that must elapse between two letters.
|
Sets the time that must elapse between two words. If negative, no word segmentation is performed.
|
Stop the entire generator. All threads are killed. Subsequent calls to startMorseSeq() or stopMorseSeq() generate exceptions. |
Return the minimum amount of silence time required for the system to conclude that the Morse code equivalent of a letter has been generated. I.e.: end-of-letter pause. |
Return the minimum amount of silence time required for the system to conclude that a word has ended. I.e.: end-of-word pause. |
Truly return only after specified time. Just using time.sleep() sleeps shorter if any interrupts occur during the sleep period.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Feb 21 11:48:06 2013 | http://epydoc.sourceforge.net |