pyui.widgets
index
c:\ninja\projects\pyui\pyui\widgets.py

Widgets in the pyui library. Widgets are smaller GUI objects that can be contained in
windows.  
 
Widgets dont do any actual drawing. Widgets maintain all the state and provide behaviour, but
use themes for drawing.

 
Modules
            
pyui.layouts
pyui
pyui.theme
 
Classes
            
Base
Button
ImageButton
CheckBox
DropDownBox
Edit
Password
Label
ListBox
MenuBarWidget
Panel
FormPanel
SplitterPanel
TabbedPanel
ViewPanel
Picture
Scroll
HScroll
VScroll
SliderBar
Window
AttachedWindow
Desktop3DWindow
Frame
ViewWindow
Menu
MenuPopup
MenuBar
TooltipWindow
ListBoxItem
MenuItem
 
class AttachedWindow(Window)
      Window that is attached to a 3D object.
NOTE: careful that these may not have co-ordinates updated - dont make these interactive
NOTE: maybe all windows should have this functionality... then Frames could use it...
 
  
Method resolution order:
AttachedWindow
Window
Base

Methods defined here:
__init__(self, xoffset, yoffset, width, height, objectHandle, viewHandle, nodeName=None)
destroy(self)

Data and non-method functions defined here:
__doc__ = 'A Window that is attached to a 3D object.\n NO...functionality... then Frames could use it...\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Window:
addChild(self, child, option=None)
# for windows, children get added to the content panel
addDrawCallback(self, callback)
draw(self, renderer)
draw the children of this window. this can be over-ridden by derived classes
to do drawing on the window.
drawWindow(self, renderer)
Sets up window drawing for the renderer, and then calls standard draw() method.
move(self, x, y)
moveto(self, x, y)
pack(self)
replacePanel(self, panel)
resize(self, w, h)
setDirty(self, collide=1)
setLayout(self, layout)
setTopMost(self, value)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class Base
      Base GUI object that all other drawable object derive from.
this object implements:
    - containment of other GUI objects
    - position and size
    - event handling
    - unique identity of all GUI objects
 
self.rect is in absolute co-ordinates, self.windowRect is in relative window co-ordinates.
self.posX and self.posY are relative to the parent object
 
   Methods defined here:
__del__(self)
__init__(self)
Initialize and register the base widget. widgets are added to the global widget list initially.
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
draw(self, renderer)
To be overridden by derived objects.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
resize(self, w, h)
 resize absolute size of the widget
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions defined here:
__doc__ = 'Base GUI object that all other drawable object d... self.posY are relative to the parent object\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class Button(Base)
      button object. has a text label. Handler will be called when it is pressed.
 
   Methods defined here:
__init__(self, text, handler=None)
disable(self)
draw(self, renderer)
enable(self)
onClicked(self, event)
onKeyDown(self, event)
onKeyUp(self, event)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
setText(self, text)

Data and non-method functions defined here:
DOWN = 2
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
IDLE = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
ROLLOVER = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
__doc__ = 'button object. has a text label. Handler will be called when it is pressed.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
canTab = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
resize(self, w, h)
 resize absolute size of the widget
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event
 
class CheckBox(Base)
      A checkbox that has two states - on and off. It toggles between them when clicked.
onCheck is a method to be called when the checkbox changes state.
 
   Methods defined here:
__init__(self, text, onCheck=None)
draw(self, renderer)
onMouseDown(self, event)
setCheck(self, value)

Data and non-method functions defined here:
__doc__ = 'A checkbox that has two states - on and off. It ...o be called when the checkbox changes state.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
resize(self, w, h)
 resize absolute size of the widget
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class Desktop3DWindow(Window)
      Special type of Window that is the "background" 3D viewport.
 
  
Method resolution order:
Desktop3DWindow
Window
Base

Methods defined here:
__init__(self)
destroy(self)
dont destroy the background window!

Data and non-method functions defined here:
__doc__ = 'Special type of Window that is the "background" 3D viewport.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Window:
addChild(self, child, option=None)
# for windows, children get added to the content panel
addDrawCallback(self, callback)
draw(self, renderer)
draw the children of this window. this can be over-ridden by derived classes
to do drawing on the window.
drawWindow(self, renderer)
Sets up window drawing for the renderer, and then calls standard draw() method.
move(self, x, y)
moveto(self, x, y)
pack(self)
replacePanel(self, panel)
resize(self, w, h)
setDirty(self, collide=1)
setLayout(self, layout)
setTopMost(self, value)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class DropDownBox(Base)
      A drop-down selection box. Pass the number of lines to be visible in the drop-down
list to the constructor.
 
   Methods defined here:
__init__(self, numVisible=10)
addItem(self, itemText, itemData, color=None)
clear(self)
clearSelection(self)
draw(self, renderer)
Draw the selected item at all times, and draw the list when expanded.
getSelectedItem(self)
onMouseDown(self, event)
onSelected(self, event)
positionSelectionList(self)
removeItem(self, text)
resize(self, width, height)

Data and non-method functions defined here:
BUTTON_WIDTH = 10
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
__doc__ = 'A drop-down selection box. Pass the number of li...n the drop-down\n list to the constructor.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class Edit(Base)
      Edit box. accepts input from user. some emacs-like editing functionality.
 
   Methods defined here:
__init__(self, text, max, handler)
deleteSelected(self)
draw(self, renderer)
findMousePos(self, pos)
getFocus(self)
loseFocus(self)
onChar(self, event)
onClicked(self, event)
onKeyDown(self, event)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
setText(self, text)
external function to set the text and move the caret to the end

Data and non-method functions defined here:
__doc__ = 'Edit box. accepts input from user. some emacs-like editing functionality.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
canTab = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
resize(self, w, h)
 resize absolute size of the widget
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event
 
class FormPanel(Panel)
      Panel that shows data about an object and allows it to be updated.
The "fields" argument is a list of data fields to populate the panel with. It
is in the format:
   [ (type, name, label, vspan, data),
     (type, name, label, vspan, data)
   ]
 
where type is one the fieldTypes below, vspan is the vertical height of the widget,
and data is speficic data for the type of form widget to be used.
 
  
Method resolution order:
FormPanel
Panel
Base

Methods defined here:
__init__(self, fieldList)
createFormWidget(self, fieldType, fieldData)
Create the right kind of widget based on the fieldType.
create_checkbox(self, title)
create_dropdownlist(self, numVisible)
create_int(self, dummy)
create_label(self, dummy)
create_list(self, dummy)
create_password(self, size)
create_slider(self, range)
create_string(self, size)
create_text(self, size)
onCheck(self, value)
onEdit(self, edit)
onSlide(self, value)
populate(self, object)
populate the data fields from the supplied object
populateFormWidget(self, fieldType, formWidget, value)
populate_checkbox(self, formWidget, value)
populate_dropdownlist = populate_list(self, formWidget, items)
populate_int = populate_string(self, formWidget, value)
populate_label = populate_string(self, formWidget, value)
populate_list(self, formWidget, items)
populate_password = populate_string(self, formWidget, value)
populate_slider(self, formWidget, value)
populate_string(self, formWidget, value)
populate_text = populate_string(self, formWidget, value)
process(self)
This takes the data in the form and updates it into the source object.
This assumes that the form has already been populated...
processFormWidget(self, fieldType, fieldName, formWidget)
process_checkbox(self, formWidget, fieldName)
process_dropdownlist = process_list(self, formWidget, fieldName)
process_int(self, formWidget, fieldName)
process_label(self, formWidget, fieldName)
process_list(self, formWidget, fieldName)
process_password = process_string(self, formWidget, fieldName)
process_slider(self, formWidget, fieldName)
process_string(self, formWidget, fieldName)
process_text = process_string(self, formWidget, fieldName)

Data and non-method functions defined here:
__doc__ = 'A Panel that shows data about an object and allo...data for the type of form widget to be used.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
fieldTypes = ['string', 'int', 'text', 'password', 'slider', 'checkbox', 'list', 'dropdownlist', 'label']
list() -> new list
list(sequence) -> new list initialized from sequence's items

Methods inherited from Panel:
addChild(self, child, option=None)
destroy(self)
draw(self, renderer)
draw the panel's children
getFocus(self)
nextTab(self, step=1)
onKeyDown(self, event)
pack(self)
resize(self, w, h)
setLayout(self, layout)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class Frame(Window)
      A frame is a window that has a titlebar and borders. it is resizable and movable by dragging the titlebar.
 
  
Method resolution order:
Frame
Window
Base

Methods defined here:
__init__(self, x, y, w, h, title, topmost=0)
draw(self, renderer)
Draws to the actual frame.
hitFrameRegion(self, pos)
onCloseButton(self)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
replacePanel(self, panel)
resize(self, w, h)
setBackImage(self, filename)
setTitle(self, title)

Data and non-method functions defined here:
__doc__ = 'A frame is a window that has a titlebar and bord...izable and movable by dragging the titlebar.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Window:
addChild(self, child, option=None)
# for windows, children get added to the content panel
addDrawCallback(self, callback)
destroy(self)
drawWindow(self, renderer)
Sets up window drawing for the renderer, and then calls standard draw() method.
move(self, x, y)
moveto(self, x, y)
pack(self)
setDirty(self, collide=1)
setLayout(self, layout)
setTopMost(self, value)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class HScroll(Scroll)
      Horizontal scroll bar.
 
  
Method resolution order:
HScroll
Scroll
Base

Methods defined here:
__init__(self)

Data and non-method functions defined here:
__doc__ = 'Horizontal scroll bar.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Scroll:
calcSize(self)
draw(self, renderer)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
resize(self, w, h)
scrollToItem(self, itemNum)
setNumItems(self, numItems, numVisible)
setupBar(self)
setupPos(self)

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class ImageButton(Button)
      Same as regular button except it has an image instead of text.
 
  
Method resolution order:
ImageButton
Button
Base

Methods defined here:
__init__(self, filename, handler, text='', ghostFilename='')
draw(self, renderer)

Data and non-method functions defined here:
__doc__ = 'Same as regular button except it has an image instead of text.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Button:
disable(self)
enable(self)
onClicked(self, event)
onKeyDown(self, event)
onKeyUp(self, event)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
setText(self, text)

Data and non-method functions inherited from Button:
DOWN = 2
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
IDLE = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
ROLLOVER = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
canTab = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
resize(self, w, h)
 resize absolute size of the widget
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event
 
class Label(Base)
      Label object has a text label. uses default font if font is not specified.
 
   Methods defined here:
__init__(self, text, font=None)
draw(self, renderer)
setText(self, text)
Set the text of the label. sets the dirty flag.

Data and non-method functions defined here:
__doc__ = 'Label object has a text label. uses default font if font is not specified.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
resize(self, w, h)
 resize absolute size of the widget
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class ListBox(Base)
      List Box has a scrollable list of selectable items.
 
   Methods defined here:
__init__(self)
addItem(self, itemText, itemData, color=None)
add an item to the list box. the data value is stored for the item
and will be available when events occur on that item.
clear(self)
clearSelection(self)
draw(self, renderer)
getSelectedItem(self)
onLButtonDown(self, event)
onLButtonUp(self, event)
onScrollPos(self, event)
removeItem(self, itemText)
resize(self, w, h)
setSelectedItem(self, name)

Data and non-method functions defined here:
__doc__ = 'List Box has a scrollable list of selectable items.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
canTab = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event
 
class ListBoxItem
      Used by ListBox to track items.
 
   Methods defined here:
__init__(self, name, data, fg, bg)

Data and non-method functions defined here:
__doc__ = 'Used by ListBox to track items.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
 
class Menu(Window)
      Menu that can be floating or attached to a menuBar.
 
  
Method resolution order:
Menu
Window
Base

Methods defined here:
__init__(self, title)
activateSubmenu(self, item)
addItem(self, title, handler=None, subMenu=None)
Add an item to the menu.
draw(self, renderer)
findItem(self, pos)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
setActive(self, item)
setShow(self, show)

Data and non-method functions defined here:
__doc__ = 'Menu that can be floating or attached to a menuBar.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
border = 4
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
iconWidth = 20
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
minWidth = 20
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.

Methods inherited from Window:
addChild(self, child, option=None)
# for windows, children get added to the content panel
addDrawCallback(self, callback)
destroy(self)
drawWindow(self, renderer)
Sets up window drawing for the renderer, and then calls standard draw() method.
move(self, x, y)
moveto(self, x, y)
pack(self)
replacePanel(self, panel)
resize(self, w, h)
setDirty(self, collide=1)
setLayout(self, layout)
setTopMost(self, value)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setParent(self, parent)
Set the parent of this widget
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class MenuBar(Window)
      Menu bar that fits at the top of the screen or the top of a window.
 
  
Method resolution order:
MenuBar
Window
Base

Methods defined here:
__init__(self)
addMenu(self, menu)
destroy(self)
draw(self, renderer)
findMenu(self, pos)
onMenuExit(self, event)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
setActiveMenu(self, menu)
setParent(self, parent)

Data and non-method functions defined here:
__doc__ = 'Menu bar that fits at the top of the screen or the top of a window.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
border = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.

Methods inherited from Window:
addChild(self, child, option=None)
# for windows, children get added to the content panel
addDrawCallback(self, callback)
drawWindow(self, renderer)
Sets up window drawing for the renderer, and then calls standard draw() method.
move(self, x, y)
moveto(self, x, y)
pack(self)
replacePanel(self, panel)
resize(self, w, h)
setDirty(self, collide=1)
setLayout(self, layout)
setTopMost(self, value)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class MenuBarWidget(Base)
      Menu bar that fits at the top of a window.
 
   Methods defined here:
__init__(self)
addMenu(self, menu)
destroy(self)
draw(self, renderer)
findMenu(self, pos)
onMenuExit(self, event)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
setActiveMenu(self, menu)
setParent(self, parent)

Data and non-method functions defined here:
__doc__ = 'Menu bar that fits at the top of a window.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
border = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
resize(self, w, h)
 resize absolute size of the widget
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class MenuItem
      Used by menu widget to track items. Can have an icon 16x16 in size.
 
   Methods defined here:
__init__(self, handler, text, subMenu)
setIcon(self, icon)

Data and non-method functions defined here:
__doc__ = 'Used by menu widget to track items. Can have an icon 16x16 in size.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
 
class MenuPopup(Menu)
      Menu that can be floating or attached to a menuBar.
 
  
Method resolution order:
MenuPopup
Menu
Window
Base

Methods defined here:
__init__(self)
activate(self, x, y)
onMenuExit(self, event)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)

Data and non-method functions defined here:
__doc__ = 'Menu that can be floating or attached to a menuBar.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Menu:
activateSubmenu(self, item)
addItem(self, title, handler=None, subMenu=None)
Add an item to the menu.
draw(self, renderer)
findItem(self, pos)
setActive(self, item)
setShow(self, show)

Data and non-method functions inherited from Menu:
border = 4
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
iconWidth = 20
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
minWidth = 20
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.

Methods inherited from Window:
addChild(self, child, option=None)
# for windows, children get added to the content panel
addDrawCallback(self, callback)
destroy(self)
drawWindow(self, renderer)
Sets up window drawing for the renderer, and then calls standard draw() method.
move(self, x, y)
moveto(self, x, y)
pack(self)
replacePanel(self, panel)
resize(self, w, h)
setDirty(self, collide=1)
setLayout(self, layout)
setTopMost(self, value)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setParent(self, parent)
Set the parent of this widget
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class Panel(Base)
      Used for handling interior window drawing and layouts.
This is the simplest type of panel that other are derived from.
Clipping takes place at the panel level.
 
   Methods defined here:
__init__(self)
addChild(self, child, option=None)
destroy(self)
draw(self, renderer)
draw the panel's children
getFocus(self)
nextTab(self, step=1)
onKeyDown(self, event)
pack(self)
resize(self, w, h)
setLayout(self, layout)

Data and non-method functions defined here:
__doc__ = 'Used for handling interior window drawing and la... Clipping takes place at the panel level.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class Password(Edit)
       
  
Method resolution order:
Password
Edit
Base

Methods defined here:
draw(self, renderer)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Edit:
__init__(self, text, max, handler)
deleteSelected(self)
findMousePos(self, pos)
getFocus(self)
loseFocus(self)
onChar(self, event)
onClicked(self, event)
onKeyDown(self, event)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
setText(self, text)
external function to set the text and move the caret to the end

Data and non-method functions inherited from Edit:
canTab = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
resize(self, w, h)
 resize absolute size of the widget
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event
 
class Picture(Base)
      Picture/Image object. warning: this does not clip to it's resized psize by default.
 
   Methods defined here:
__init__(self, filename)
draw(self, renderer)
setFilename(self, filename)
setRotation(self, irotationDeg)

Data and non-method functions defined here:
__doc__ = "Picture/Image object. warning: this does not clip to it's resized psize by default.\n "
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
resize(self, w, h)
 resize absolute size of the widget
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class Scroll(Base)
      Base scroll bar.
 
   Methods defined here:
__init__(self)
calcSize(self)
draw(self, renderer)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
resize(self, w, h)
scrollToItem(self, itemNum)
setNumItems(self, numItems, numVisible)
setupBar(self)
setupPos(self)

Data and non-method functions defined here:
__doc__ = 'Base scroll bar.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class SliderBar(Base)
      A horizontal slider bar. Has a slider handle that the user can drag to change its value.
the onSlide method will be called when the value of the slider changes.
 
   Methods defined here:
__init__(self, onSlide, range=1, initialPos=1)
draw(self, renderer)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
resize(self, w, h)

Data and non-method functions defined here:
BARWIDTH = 8
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
__doc__ = 'A horizontal slider bar. Has a slider handle tha...called when the value of the slider changes.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class SplitterPanel(Panel)
      A panel that is split in half - vertically or horizontally.
Can use pixels or percentage to split. Each side of the split is a panel.
The default panels can be replaced with custom panels.
 
There is a middle bar of the splitter panel. This middle bar _could_ be used
to resize it...
 
  
Method resolution order:
SplitterPanel
Panel
Base

Methods defined here:
__init__(self, direction=0, method=1, ratio=50)
draw(self, renderer)
getFirstPanel(self)
 returns the left or top panel
getSecondPanel(self)
 returns to right or bottom panel
pack(self)
replaceFirstPanel(self, panel)
replaceSecondPanel(self, panel)
resize(self, w, h)
setHorizontalSplit(self, y)
setVerticalSplit(self, x)

Data and non-method functions defined here:
HORIZONTAL = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
PADDING = 2
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
PERCENTAGE = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
PIXELS = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
VERTICAL = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
__doc__ = 'A panel that is split in half - vertically or ho...ddle bar _could_ be used\n to resize it...\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Panel:
addChild(self, child, option=None)
destroy(self)
getFocus(self)
nextTab(self, step=1)
onKeyDown(self, event)
setLayout(self, layout)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class TabbedPanel(Panel)
      A panel with multiple panels that are activated by tabs along the top of the panel.
The inner panels can be created by this panel or existing panels can be added in.
 
  
Method resolution order:
TabbedPanel
Panel
Base

Methods defined here:
__init__(self)
activatePanel(self, p)
addPanel(self, title, panel=None)
Can add an existing panel, or have a panel created by default.
Adding an existing panel is useful for adding special panel types (splitters/tabs)
checkHit(self, pos)
draw(self, renderer)
getFocus(self)
getPanel(self, number)
handleEvent(self, event)
nextPanel(self)
onKeyDown(self, event)
onMouseDown(self, event)
pack(self)
removePanel(self, title)
Remove an existing panel by its name.
resize(self, w, h)
Only resize the current tab. other tabs are resized when switched to later if it is required.

Data and non-method functions defined here:
__doc__ = 'A panel with multiple panels that are activated ...is panel or existing panels can be added in.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Panel:
addChild(self, child, option=None)
destroy(self)
nextTab(self, step=1)
setLayout(self, layout)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
clearDirty(self)
Clears this widgets dirty flag.
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class TooltipWindow(Window)
      A window that displays tooltips.
 
  
Method resolution order:
TooltipWindow
Window
Base

Methods defined here:
__init__(self, x, y, w, h)
activate(self, text, rect)
draw(self, renderer)

Data and non-method functions defined here:
__doc__ = 'A window that displays tooltips.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Window:
addChild(self, child, option=None)
# for windows, children get added to the content panel
addDrawCallback(self, callback)
destroy(self)
drawWindow(self, renderer)
Sets up window drawing for the renderer, and then calls standard draw() method.
move(self, x, y)
moveto(self, x, y)
pack(self)
replacePanel(self, panel)
resize(self, w, h)
setDirty(self, collide=1)
setLayout(self, layout)
setTopMost(self, value)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class VScroll(Scroll)
      Vertical scroll bar.
 
  
Method resolution order:
VScroll
Scroll
Base

Methods defined here:
__init__(self)

Data and non-method functions defined here:
__doc__ = 'Vertical scroll bar.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Scroll:
calcSize(self)
draw(self, renderer)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
resize(self, w, h)
scrollToItem(self, itemNum)
setNumItems(self, numItems, numVisible)
setupBar(self)
setupPos(self)

Methods inherited from Base:
__del__(self)
addChild(self, child)
Add a child widget.
addPopup(self, popup)
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
destroy(self)
Call this to remove all references to the widget from the system.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
pack(self)
used by panels & layout managers
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class ViewPanel(Panel)
      A rectangle intended as a viewport into a 3D world. The implementation of worlds is very renderer
specific. The only real constraint placed by PyUI is that the world lifetime is controlled by
createWorld/destroyWorld. The handle returned from createWorld should be used to identify it in
any further operations.
 
  
Method resolution order:
ViewPanel
Panel
Base

Methods defined here:
__init__(self, world, windowHandle, width, height)
destroy(self)
draw(self, renderer)

Data and non-method functions defined here:
__doc__ = 'A rectangle intended as a viewport into a 3D wor...o identify it in\n any further operations.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Panel:
addChild(self, child, option=None)
getFocus(self)
nextTab(self, step=1)
onKeyDown(self, event)
pack(self)
resize(self, w, h)
setLayout(self, layout)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
move(self, dx, dy)
move relative to current position.
moveto(self, x, y)
move to absolute position.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setDirty(self, collide=1)
Sets this widget to redraw itself and notifies window.
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class ViewWindow(Frame)
      A window that contains a ViewPanel
 
  
Method resolution order:
ViewWindow
Frame
Window
Base

Methods defined here:
__init__(self, x, y, w, h, world)

Data and non-method functions defined here:
__doc__ = 'A window that contains a ViewPanel\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Frame:
draw(self, renderer)
Draws to the actual frame.
hitFrameRegion(self, pos)
onCloseButton(self)
onMouseDown(self, event)
onMouseMotion(self, event)
onMouseUp(self, event)
replacePanel(self, panel)
resize(self, w, h)
setBackImage(self, filename)
setTitle(self, title)

Methods inherited from Window:
addChild(self, child, option=None)
# for windows, children get added to the content panel
addDrawCallback(self, callback)
destroy(self)
drawWindow(self, renderer)
Sets up window drawing for the renderer, and then calls standard draw() method.
move(self, x, y)
moveto(self, x, y)
pack(self)
setDirty(self, collide=1)
setLayout(self, layout)
setTopMost(self, value)

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class Window(Base)
      window - contains other objects. 
Windows have a main panel (_panel) which can be replaced with a custom panel. this main panel is
kept the size of the interior of the window.
 
   Methods defined here:
__init__(self, x, y, w, h, topmost=0)
addChild(self, child, option=None)
# for windows, children get added to the content panel
addDrawCallback(self, callback)
destroy(self)
draw(self, renderer)
draw the children of this window. this can be over-ridden by derived classes
to do drawing on the window.
drawWindow(self, renderer)
Sets up window drawing for the renderer, and then calls standard draw() method.
move(self, x, y)
moveto(self, x, y)
pack(self)
replacePanel(self, panel)
resize(self, w, h)
setDirty(self, collide=1)
setLayout(self, layout)
setTopMost(self, value)

Data and non-method functions defined here:
__doc__ = 'window - contains other objects. \n Windows ha...kept the size of the interior of the window.\n '
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'pyui.widgets'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Methods inherited from Base:
__del__(self)
addPopup(self, popup)
calcSize(self)
This sets up self.rect to be absolute co-ordinates. also sets up self.windowRect
to be relative to the upper left of the parent Window
checkHit(self, pos)
clearDirty(self)
Clears this widgets dirty flag.
getFocus(self)
Acquire the gui system's focus. only one Base may have the focus
getToolTipInfo(self, pos)
return a tuple of the text and rectangle for the tooltip for when the
mouse is in <pos> within the window. This uses the member variable toolTipInfo
if it is populated.
handleEvent(self, event)
 event processing for base objects
hasFocus(self)
hit(self, pos)
Check for a hit using absolute coordinates.
loseFocus(self)
lose the gui system's focus.
postEvent(self, eventType)
Post an event to be processed next time through the event loop
registerEvent(self, eventType, handler)
Setup handler for an event
removeChild(self, child)
setParent(self, parent)
Set the parent of this widget
setShow(self, value)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from Base:
canTab = 0
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
Data
             __file__ = r'.\pyui\widgets.pyc'
__name__ = 'pyui.widgets'