pyui.widgets
index
c:\projects\pyuicvs\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.
 
All handler methods for widgets are prefixed with "_pyui" so that they
never conflict with a user defined event handler method.

 
Modules
            
pyui.layouts
pyui
 
Classes
            
pyui.base.Base
Button
ImageButton
CheckBox
DropDownBox
Edit
NumberEdit
Password
Label
ListBox
MenuBarWidget
Picture
Scroll
HScroll
VScroll
SliderBar
ListBoxItem
MenuItem
pyui.base.Panel(pyui.base.Base)
FormPanel
SplitterPanel
TabbedPanel
ViewPanel
pyui.base.Window(pyui.base.Base)
AttachedWindow
Desktop3DWindow
Frame
ViewWindow
Menu
MenuPopup
MenuBar
TooltipWindow
 
class AttachedWindow(pyui.base.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
pyui.base.Window
pyui.base.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 pyui.base.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)
setShow(self, value)
setTopMost(self, value)

Methods inherited from pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 Button(pyui.base.Base)
      button object. has a text label. Handler will be called when it is pressed.
 
   Methods defined here:
__init__(self, text, handler=None, font=None, shadow=0, fgColor=None, bgColor=None, roColor=None)
_pyuiClicked(self, event)
_pyuiKeyDown(self, event)
_pyuiKeyUp(self, event)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
disable(self)
draw(self, renderer)
enable(self)
getText(self)
setText(self, text, dontResize=0)
Pass 1 to dontResize if you dont want the button to resize itself to the
text passed in.

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.
widgetLabel = 'Button'
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 pyui.base.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(pyui.base.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)
_pyuiMouseDown(self, event)
draw(self, renderer)
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 pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 Desktop3DWindow(pyui.base.Window)
      Special type of Window that is the "background" 3D viewport.
 
  
Method resolution order:
Desktop3DWindow
pyui.base.Window
pyui.base.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 pyui.base.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)
setShow(self, value)
setTopMost(self, value)

Methods inherited from pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 DropDownBox(pyui.base.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, onSelected=None)
_pyuiMouseDown(self, event)
_pyuiSelectedEvent(self, item)
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)
hideMe(self, interval)
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 pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 Edit(pyui.base.Base)
      Edit box. accepts input from user. some emacs-like editing functionality.
 
   Methods defined here:
__init__(self, text, max, handler)
_pyuiChar(self, event)
_pyuiClicked(self, event)
_pyuiKeyDown(self, event)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
deleteSelected(self)
draw(self, renderer)
findMousePos(self, pos)
getFocus(self)
loseFocus(self)
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.
widgetLabel = 'Edit'
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 pyui.base.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(pyui.base.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
pyui.base.Panel
pyui.base.Base

Methods defined here:
__init__(self, fieldList)
_pyuiCheck(self, value)
_pyuiEdit(self, edit)
_pyuiSlide(self, value)
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)
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 pyui.base.Panel:
_pyuiKeyDown(self, event)
addChild(self, child, option=None)
destroy(self)
draw(self, renderer)
draw the panel's children
getFocus(self)
nextTab(self, step=1)
pack(self)
resize(self, w, h)
setLayout(self, layout)

Methods inherited from pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 Frame(pyui.base.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
pyui.base.Window
pyui.base.Base

Methods defined here:
__init__(self, x, y, w, h, title, topmost=0)
_pyuiCloseButton(self)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
addMenuBar(self, menuBar)
draw(self, renderer)
Draws to the actual frame if the renderer requires it.
hitFrameRegion(self, pos)
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 pyui.base.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)
setShow(self, value)
setTopMost(self, value)

Methods inherited from pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 HScroll(Scroll)
      Horizontal scroll bar.
 
  
Method resolution order:
HScroll
Scroll
pyui.base.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:
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
calcSize(self)
draw(self, renderer)
resize(self, w, h)
scrollToItem(self, itemNum)
setNumItems(self, numItems, numVisible)
setupBar(self)
setupPos(self)

Data and non-method functions inherited from Scroll:
widgetLabel = 'Scroll'
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 pyui.base.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 pyui.base.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
pyui.base.Base

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

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.
widgetLabel = 'ImageButton'
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:
_pyuiClicked(self, event)
_pyuiKeyDown(self, event)
_pyuiKeyUp(self, event)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
disable(self)
enable(self)
getText(self)
setText(self, text, dontResize=0)
Pass 1 to dontResize if you dont want the button to resize itself to the
text passed in.

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 pyui.base.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(pyui.base.Base)
      Label object has a text label. uses default font if font is not specified.
 
   Methods defined here:
__init__(self, text, color=None, font=None, shadow=0, align=0)
draw(self, renderer)
setColor(self, color=None)
setText(self, text)
Set the text of the label. sets the dirty flag.

Data and non-method functions defined here:
CENTER = 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.
LEFT = 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.
RIGHT = 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__ = '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.
widgetLabel = 'Label'
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 pyui.base.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 pyui.base.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(pyui.base.Base)
      List Box has a scrollable list of selectable items.
List box behavior should incorporate the right mouse button -BrianU 10-31-02
 
   Methods defined here:
__init__(self, onSelected=None, onDouble=None)
_pyuiDoubleClick(self, event)
_pyuiDoubleEvent(self, event)
_pyuiLButtonDown(self, event)
_pyuiLButtonUp(self, event)
_pyuiScrollPos(self, event)
_pyuiSelectEvent(self, event)
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)
clearAllItems(self)
clearSelection(self)
draw(self, renderer)
getItemByData(self, itemData)
getSelectedItem(self)
itemCompareByData(self, item1, item2)
itemCompareByName(self, item1, item2)
populateList(self, items)
removeItem(self, itemText)
removeItemByData(self, itemData)
resize(self, w, h)
setSelectedItem(self, name)
sortByData(self)
sortByName(self)

Data and non-method functions defined here:
__doc__ = 'List Box has a scrollable list of selectable ite...rate the right mouse button -BrianU 10-31-02\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.
widgetLabel = 'ListBox'
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 pyui.base.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(pyui.base.Window)
      Menu that can be floating or attached to a menuBar.
 
  
Method resolution order:
Menu
pyui.base.Window
pyui.base.Base

Methods defined here:
__init__(self, title)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
activateSubmenu(self, item)
addItem(self, title, handler=None, subMenu=None)
Add an item to the menu.
changeItemTitle(self, oldTitle, newTitle, newHandler)
draw(self, renderer)
findItem(self, pos)
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 pyui.base.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 pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 MenuBar(pyui.base.Window)
      Menu bar that fits at the top of the screen or the top of a window.
 
  
Method resolution order:
MenuBar
pyui.base.Window
pyui.base.Base

Methods defined here:
__init__(self)
_pyuiMenuExit(self, event)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
addMenu(self, menu)
destroy(self)
draw(self, renderer)
findMenu(self, pos)
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 pyui.base.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)
setShow(self, value)
setTopMost(self, value)

Methods inherited from pyui.base.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)
setWindow(self, window)
unregisterEvent(self, eventType)
Remove handler for an event

Data and non-method functions inherited from pyui.base.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.
widgetLabel = 'Base'
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 MenuBarWidget(pyui.base.Base)
      Menu bar that fits at the top of a window.
 
   Methods defined here:
__init__(self)
_pyuiMenuExit(self, event)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
addMenu(self, menu)
destroy(self)
draw(self, renderer)
findMenu(self, pos)
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 pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 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
pyui.base.Window
pyui.base.Base

Methods defined here:
__init__(self)
_pyuiMenuExit(self, event)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
activate(self, x, y)

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.
changeItemTitle(self, oldTitle, newTitle, newHandler)
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 pyui.base.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 pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 NumberEdit(Edit)
      I am an edit box that will only take numbers as input.  I will only allow
decimel points if asked to, and will only allow the first character to be a minus sign.
 
  
Method resolution order:
NumberEdit
Edit
pyui.base.Base

Methods defined here:
__init__(self, text, max, handler, allowDecimels)
_pyuiChar(self, event)
getValue(self)
Returns the integer or real version of this data.
setValue(self, value)

Data and non-method functions defined here:
__doc__ = 'I am an edit box that will only take numbers as ...llow the first character to be a minus sign.\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 Edit:
_pyuiClicked(self, event)
_pyuiKeyDown(self, event)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
deleteSelected(self)
draw(self, renderer)
findMousePos(self, pos)
getFocus(self)
loseFocus(self)
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.
widgetLabel = 'Edit'
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 pyui.base.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 Password(Edit)
       
  
Method resolution order:
Password
Edit
pyui.base.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.
widgetLabel = 'Password'
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)
_pyuiChar(self, event)
_pyuiClicked(self, event)
_pyuiKeyDown(self, event)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
deleteSelected(self)
findMousePos(self, pos)
getFocus(self)
loseFocus(self)
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 pyui.base.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(pyui.base.Base)
      Picture/Image object. warning: this does not clip to it's resized psize by default.
 
The pieceRect arg is used to draw portions of images. This can be
useful for flipbook style animations. The PieceRect is a tuple of
(x position, y position, width, height). When the image is divided
into pieces (width * height) and the single piece at (x,y) is
drawn.
 
   Methods defined here:
__init__(self, filename, pieceRect=(0, 0, 1, 1))
draw(self, renderer)
setFilename(self, filename)
setPiece(self, x, y, w, h)
setRotation(self, irotationDeg)

Data and non-method functions defined here:
__doc__ = 'Picture/Image object. warning: this does not cli... and the single piece at (x,y) is\n drawn.\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 pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 Scroll(pyui.base.Base)
      Base scroll bar.
 
   Methods defined here:
__init__(self)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
calcSize(self)
draw(self, renderer)
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.
widgetLabel = 'Scroll'
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 pyui.base.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 pyui.base.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(pyui.base.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)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
draw(self, renderer)
resize(self, w, h)
setValue(self, newValue)

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 pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 SplitterPanel(pyui.base.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
pyui.base.Panel
pyui.base.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 pyui.base.Panel:
_pyuiKeyDown(self, event)
addChild(self, child, option=None)
destroy(self)
getFocus(self)
nextTab(self, step=1)
setLayout(self, layout)

Methods inherited from pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 TabbedPanel(pyui.base.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
pyui.base.Panel
pyui.base.Base

Methods defined here:
__init__(self)
_pyuiKeyDown(self, event)
_pyuiMouseDown(self, event)
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)
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 pyui.base.Panel:
addChild(self, child, option=None)
destroy(self)
nextTab(self, step=1)
setLayout(self, layout)

Methods inherited from pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 TooltipWindow(pyui.base.Window)
      A window that displays tooltips.
 
  
Method resolution order:
TooltipWindow
pyui.base.Window
pyui.base.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 pyui.base.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)
setShow(self, value)
setTopMost(self, value)

Methods inherited from pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 VScroll(Scroll)
      Vertical scroll bar.
 
  
Method resolution order:
VScroll
Scroll
pyui.base.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:
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
calcSize(self)
draw(self, renderer)
resize(self, w, h)
scrollToItem(self, itemNum)
setNumItems(self, numItems, numVisible)
setupBar(self)
setupPos(self)

Data and non-method functions inherited from Scroll:
widgetLabel = 'Scroll'
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 pyui.base.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 pyui.base.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(pyui.base.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
pyui.base.Panel
pyui.base.Base

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

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 pyui.base.Panel:
_pyuiKeyDown(self, event)
addChild(self, child, option=None)
getFocus(self)
nextTab(self, step=1)
pack(self)
resize(self, w, h)
setLayout(self, layout)

Methods inherited from pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
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 ViewWindow(Frame)
      A window that contains a ViewPanel
 
  
Method resolution order:
ViewWindow
Frame
pyui.base.Window
pyui.base.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:
_pyuiCloseButton(self)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
addMenuBar(self, menuBar)
draw(self, renderer)
Draws to the actual frame if the renderer requires it.
hitFrameRegion(self, pos)
replacePanel(self, panel)
resize(self, w, h)
setBackImage(self, filename)
setTitle(self, title)

Methods inherited from pyui.base.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)
setShow(self, value)
setTopMost(self, value)

Methods inherited from pyui.base.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 pyui.base.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.
widgetLabel = 'Base'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
 
Data
             __file__ = r'.\pyui\widgets.pyc'
__name__ = 'pyui.widgets'