Package muntjac :: Package ui :: Module layout :: Class IMarginHandler
[hide private]
[frames] | no frames]

Class IMarginHandler

source code

object --+
         |
        IMarginHandler

This type of layout supports automatic addition of margins (space around its components).

Instance Methods [hide private]
 
setMargin(self, marginInfo)
Enable margins for this layout.
source code
 
getMargin(self)
Returns: MarginInfo containing the currently enabled margins.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setMargin(self, marginInfo)

source code 

Enable margins for this layout.

NOTE: This will only affect the space around the components in the layout, not space between the components in the layout. Use setSpacing to add space between the components in the layout.

See the reference manual for more information about CSS rules for defining the size of the margin.

Parameters:
  • marginInfo - MarginInfo object containing the new margins.

getMargin(self)

source code 
Returns:
MarginInfo containing the currently enabled margins.