<s> from muntjac . api import Application , Window , Label <EOL> from muntjac . addon . colorpicker . color import Color <EOL> from muntjac . addon . colorpicker . color_picker import ColorPicker <EOL> class ColorPickerDemo ( Application ) : <EOL> def init ( self ) : <EOL> mainWindow = Window ( "<STR_LIT>" ) <EOL> label = Label ( "<STR_LIT>" ) <EOL> mainWindow . addComponent ( label ) <EOL> self . setMainWindow ( mainWindow ) <EOL> cp = ColorPicker ( "<STR_LIT>" , Color . RED ) <EOL> mainWindow . addComponent ( cp ) <EOL> cp . setButtonCaption ( "<STR_LIT>" ) <EOL> def colorChanged ( self , event ) : <EOL> self . getMainWindow ( ) . showNotification ( "<STR_LIT>" ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from muntjac . main import muntjac <EOL> muntjac ( ColorPickerDemo , nogui = True , forever = True , debug = True ) </s>
