Package peppy :: Module main :: Class LocaleParam
[frames] | no frames]

Class LocaleParam

               object --+        
                        |        
lib.userparams.debugmixin --+    
                            |    
         lib.userparams.Param --+
                                |
                               LocaleParam

I18N parameter that pops up a dialog containing available locales.

The locale's canonical name is used as the value.

Instance Methods
 
getCtrl(self, parent, initial=None)
Create and editing control.
 
setValue(self, ctrl, value)
Populate the control given the user value.
 
getValue(self, ctrl)
Get the user value from the control.

Inherited from lib.userparams.Param: OnCallback, __init__, __str__, getLabel, isSettable, isVisible, processCallback, setCallback, setInitialState, setValueWithoutCallback, textToValue, valueToText

Inherited from lib.userparams.debugmixin: dprint

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Variables

Inherited from lib.userparams.Param: callback_event, default

Inherited from lib.userparams.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

getCtrl(self, parent, initial=None)

 

Create and editing control.

Given the parent window, create a user interface element to edit the param.

Overrides: lib.userparams.Param.getCtrl
(inherited documentation)

setValue(self, ctrl, value)

 

Populate the control given the user value.

If any conversion is needed to show the user value in the control, do it here.

Overrides: lib.userparams.Param.setValue
(inherited documentation)

getValue(self, ctrl)

 

Get the user value from the control.

If the control doesn't automatically return a value of the correct type, convert it here.

Overrides: lib.userparams.Param.getValue
(inherited documentation)