Module albow.media.EnableMusicControl
Source code
from albow.widgets.CheckBox import CheckBox
from albow.media.MusicUtilities import MusicUtilities
class EnableMusicControl(CheckBox):
    """
    A control for enabling and disabling the playing of music by the `albow.media.MusicUtilities` module.
    """
    def get_value(self):
        return MusicUtilities.get_music_enabled()
    def set_value(self, newState: bool):
        MusicUtilities.set_music_enabled(newState)
Classes
class EnableMusicControl (**kwds)- 
A control for enabling and disabling the playing of music by the
albow.media.MusicUtilitiesmodule.Creates a new widget, initially without any parent. If a rect is given, it specifies the new widget's initial s ize and position relative to its parent.
Args
rect- A PyGame rectangle defining the portion of the parent widget's coordinate system occupied by the
 
widget. Modifying this rectangle changes the widget's size and position.
**kwds- Additional attributes specified as key-value pairs
 
Source code
class EnableMusicControl(CheckBox): """ A control for enabling and disabling the playing of music by the `albow.media.MusicUtilities` module. """ def get_value(self): return MusicUtilities.get_music_enabled() def set_value(self, newState: bool): MusicUtilities.set_music_enabled(newState)Ancestors
Methods
def get_value(self)- 
Source code
def get_value(self): return MusicUtilities.get_music_enabled() def set_value(self, newState)- 
Source code
def set_value(self, newState: bool): MusicUtilities.set_music_enabled(newState) 
Inherited members
CheckBox:addadd_anchoradd_centeredanchorattention_lostaugment_mouse_eventbg_colorbg_imageborder_colorborder_widthcall_handlercall_parent_handlerdefault_sizedefer_drawingdismissdrawdraw_overenableenabledfg_colorfocusfocus_switchfontget_cursorget_focusget_margin_rectget_rootget_top_widgetget_visibleglobal_to_localhas_focushighlightedinheritedinvalidateis_gl_containerkey_downkey_uplocal_to_globalmarginmenu_barparentparent_resizedpresentrectrefrelative_moderemoveremove_anchorresizedscale_bgsel_colorset_parentset_size_for_textsmoothtab_stopvaluevisible