Back to index

freevial  1.2
Classes | Functions | Variables
common.globals Namespace Reference

Classes

class  GlobalVar

Functions

def mute

Variables

tuple Global = GlobalVar()

Function Documentation

def common.globals.mute (   sound = None,
  music = None 
)
Mute sound or music. 

Definition at line 69 of file globals.py.

00069 
00070 def mute( sound = None, music = None ):
00071        """ Mute sound or music. """
00072        
00073        global SOUND_MUTE, MUSIC_MUTE
00074        
00075        if sound: SOUND_MUTE = sound
00076        if music: MUSIC_MUTE = music
00077        
00078        return {
00079                      'sound': SOUND_MUTE,
00080                      'music': MUSIC_MUTE,
00081               }

Variable Documentation

Definition at line 45 of file globals.py.