Last page update: November 23, 2011
Classes:
There is no class defined
External methods:
Complete reference:
These methods don’t belong to any class.
This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emitted when the function is used
| Parameters: | func – the function to deprecate |
|---|
A decorator. Allow to extract some **kwargs creating some kwargs sub-families
| Parameters: |
|
|---|
In the “extract_kwargs” definition line you have to follow this syntax:
@extract_kwargs(adapterName=True)
where:
In the method definition the method’s attributes syntax is:
adapterName_kwargs
where:
When you call the decorated method, to specify the extracted kwargs you have to use the following syntax:
methodName(adapterName_attributeName=value,adapterName_otherAttributeName=otherValue,...)
where:
Example:
Let’s define a method called my_method:
@extract_kwargs(palette=True,dialog=True,default=True) # in this line we define three families of kwargs, # indentified by the prefixes: # "palette", "dialog", "default" def my_method(self,pane,table=None, # "standard" parameters palette_kwargs=None,dialog_kwargs=None,default_kwargs=None, # extracted parameters from kwargs **kwargs): # other kwargsNow, if you call the my_method method you will have to use:
pane.another_method(palette_height='200px',palette_width='300px',dialog_height='250px')where “pane” is a ContentPane to which you have attached your method
TODO