Package fife :: Package extensions :: Package pychan :: Package widgets' :: Module percentagebar :: Class PercentageBar
[hide private]
[frames] | no frames]

Class PercentageBar

source code

   object --+    
            |    
widget.Widget --+
                |
               PercentageBar

A percentage bar widget

New Attributes

Instance Methods [hide private]
 
__init__(self, parent=None, name=None, size=None, min_size=None, max_size=None, helptext=None, position=None, style=None, hexpand=None, vexpand=None, font=None, base_color=None, background_color=None, foreground_color=None, selection_color=None, border_size=None, position_technique=None, is_focusable=None, comment=None, value=None, orientation=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
clone(self, prefix)
Clones this widget.
source code
int
_getValue(self) source code
 
_setValue(self, value)
setValue(self, int value)
source code
 
_setOrientation(self, orientation)
setOrientation(self, Orientation orientation)
source code
int
_getOrientation(self) source code

Inherited from widget.Widget: __repr__, __str__, adaptLayout, addChild, addChildren, afterHide, beforeShow, capture, collectData, collectDataAsDict, deepApply, distributeData, distributeInitialData, execute, expandContent, findChild, findChildByName, findChildren, getAbsolutePos, getData, getNamedChildren, hide, insertChild, insertChildBefore, isCaptured, isVisible, listNamedWidgets, mapEvents, match, removeAllChildren, removeChild, removeChildren, requestFocus, resizeToContent, setData, setInitialData, show, sizeChanged, stylize

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

Class Variables [hide private]
  HORIZONTAL = fife.PercentageBar.HORIZONTAL
  VERTICAL = fife.PercentageBar.VERTICAL
  ATTRIBUTES = Widget.ATTRIBUTES+ [IntAttr('orientation'), IntAt...
  DEFAULT_HEXPAND = 1
  DEFAULT_VEXPAND = 0
  DEFAULT_MIN_SIZE = 10, 10
  DEFAULT_VALUE = 0
  DEFAULT_ORIENTATION = fife.PercentageBar.HORIZONTAL
  value = property(_getValue, _setValue)
  orientation = property(_getOrientation, _setOrientation)

Inherited from widget.Widget: DEFAULT_BORDER_SIZE, DEFAULT_COMMENT, DEFAULT_FONT, DEFAULT_HELPTEXT, DEFAULT_MAX_SIZE, DEFAULT_NAME, DEFAULT_POSITION, DEFAULT_POSITION_TECHNIQUE, DEFAULT_SIZE, HIDE_SHOW_ERROR, background_color, base_color, border_size, font, foreground_color, height, is_focusable, max_height, max_width, min_height, min_width, name, parent, position, selection_color, size, style, width, x, y

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent=None, name=None, size=None, min_size=None, max_size=None, helptext=None, position=None, style=None, hexpand=None, vexpand=None, font=None, base_color=None, background_color=None, foreground_color=None, selection_color=None, border_size=None, position_technique=None, is_focusable=None, comment=None, value=None, orientation=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

clone(self, prefix)

source code 

Clones this widget.

Concrete widgets should implement this one, if not, an exception should be raised.

Prefix is used to create the name of the cloned widget.

Overrides: widget.Widget.clone
(inherited documentation)

Class Variable Details [hide private]

ATTRIBUTES

Value:
Widget.ATTRIBUTES+ [IntAttr('orientation'), IntAttr('value')]