Home | Trees | Indices | Help |
|
---|
|
1 2 from muntjac.api import Application, Window, Label 3 4 from muntjac.addon.colorpicker.color import Color 5 6 from muntjac.addon.colorpicker.color_picker import ColorPicker 7 81036 37 38 if __name__ == '__main__': 39 from muntjac.main import muntjac 40 muntjac(ColorPickerDemo, nogui=True, forever=True, debug=True) 4112 mainWindow = Window("Color Picker Demo Application") 13 label = Label("Hello Muntjac user") 14 mainWindow.addComponent(label) 15 self.setMainWindow(mainWindow) 16 17 # Create the color picker 18 cp = ColorPicker("Our ColorPicker", Color.RED) 19 mainWindow.addComponent(cp) 20 21 # Set the button caption 22 cp.setButtonCaption("Our color")23 24 # Hide the color history 25 # cp.setHistoryVisibility(False) 26 27 # Hide the HSV tab 28 # cp.setHSVVisibility(False) 29 30 # Hide the RGB tab 31 # cp.setRGBVisibility(False) 32 33
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jul 6 19:33:13 2013 | http://epydoc.sourceforge.net |