Package muntjac :: Package addon :: Package colorpicker :: Module color_picker_application :: Class ColorPickerApplication
[hide private]
[frames] | no frames]

Class ColorPickerApplication

source code

                      object --+        
                               |        
terminal.uri_handler.IUriHandler --+    
                                   |    
                      object --+   |    
                               |   |    
     terminal.terminal.ITerminal --+    
                                   |    
                      object --+   |    
                               |   |    
terminal.terminal.IErrorListener --+    
                                   |    
             application.Application --+
                                       |
                          object --+   |
                                   |   |
   color_picker.IColorChangeListener --+
                                       |
                                      ColorPickerApplication

Testing application for the ColorPicker.


Authors:
John Ahlroos / ITMill Oy Ltd 2010, Richard Lincoln
Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setPopupVisibilities(self) source code
 
init(self)
Main initializer of the application.
source code
 
updateDisplay(self, fg, bg)
Update display.
source code
 
colorChanged(self, event) source code
 
getVersion(self)
Override this method to return correct version number of your Application.
source code

Inherited from application.Application: addCallback, addListener, addResource, addWindow, close, getContext, getErrorHandler, getLocale, getLogoutURL, getMainWindow, getProperty, getPropertyNames, getRelativeLocation, getTheme, getURL, getUser, getWindow, getWindows, handleURI, isRunning, removeCallback, removeListener, removeResource, removeWindow, setErrorHandler, setLocale, setLogoutURL, setMainWindow, setTheme, setUser, start, terminalError

Inherited from terminal.terminal.ITerminal: getDefaultTheme, getScreenHeight, getScreenWidth

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from application.Application: getSystemMessages

Class Variables [hide private]
  _VERSION = '1.1.2'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

init(self)

source code 

Main initializer of the application. The init method is called by the framework when the application is started, and it should perform whatever initialization operations the application needs, such as creating windows and adding components to them.

Overrides: application.Application.init
(inherited documentation)

updateDisplay(self, fg, bg)

source code 

Update display.

Parameters:
  • fg - the foreround color
  • bg - the background color

colorChanged(self, event)

source code 
Overrides: color_picker.IColorChangeListener.colorChanged

getVersion(self)

source code 

Override this method to return correct version number of your Application. Version information is delivered for example to Testing Tools test results. By default this returns a string "NONVERSIONED".

Returns:
version string
Overrides: application.Application.getVersion
(inherited documentation)