pyui.dialogs
index
c:\projects\pyuicvs\pyui\dialogs.py

Dialogs for the pyui library.

 
Modules
            
pyui.locals
os
pyui
re
stat
string
sys
 
Classes
            
pyui.base.Base
ColorGradient
ColorSolid
ColorStrip
LineDisplay
ConsoleOutput
pyui.widgets.Edit(pyui.base.Base)
ConsoleEdit
pyui.widgets.Frame(pyui.base.Window)
Console
Dialog
ColorDialog
FileDialog
StdDialog
 
class ColorDialog(Dialog)
      Allows the user to select a color.
 
  
Method resolution order:
ColorDialog
Dialog
pyui.widgets.Frame
pyui.base.Window
pyui.base.Base

Methods defined here:
__init__(self, callback, r=255, g=0, b=0)
_pyuiBlue(self, value)
_pyuiCancel(self, button)
_pyuiGreen(self, value)
_pyuiOK(self, button)
_pyuiRed(self, value)
setColor(self, strip=1)
setRGB(self, r, g, b, strip=1)

Data and non-method functions defined here:
__doc__ = 'Allows the user to select a color.\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.dialogs'
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 Dialog:
close(self, value=1)
destroy(self)
doModal(self, cb=None)

Methods inherited from pyui.widgets.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)
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 ColorGradient(pyui.base.Base)
       
   Methods defined here:
__init__(self, color, dialog)
_pyuiMouseDown(self, event)
draw(self, renderer)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'pyui.dialogs'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
colors = [(255, 0, 0), (255, 255, 0), (0, 255, 0), (0, 255, 255), (0, 0, 255), (255, 0, 255), (255, 0, 0)]
list() -> new list
list(sequence) -> new list initialized from sequence's items
segments = 6
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

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 ColorSolid(pyui.base.Base)
       
   Methods defined here:
__init__(self, color)
draw(self, renderer)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'pyui.dialogs'
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 ColorStrip(pyui.base.Base)
       
   Methods defined here:
__init__(self, color, dialog)
_pyuiMouseDown(self, event)
draw(self, renderer)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'pyui.dialogs'
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 Console(pyui.widgets.Frame)
      ####################################
# python console window
 
  
Method resolution order:
Console
pyui.widgets.Frame
pyui.base.Window
pyui.base.Base

Methods defined here:
__init__(self, x, y, w, h)
_pyuiGo(self, object)
_pyuiOutput(self, event)
destroy(self)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'pyui.dialogs'
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.widgets.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)
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 ConsoleEdit(pyui.widgets.Edit)
      #####################
# edit box with history
#####################
 
  
Method resolution order:
ConsoleEdit
pyui.widgets.Edit
pyui.base.Base

Methods defined here:
__init__(self, text, max, execCallback)
_pyuiEnter(self, object)
_pyuiKeyDown(self, event)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'pyui.dialogs'
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.widgets.Edit:
_pyuiChar(self, event)
_pyuiClicked(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 pyui.widgets.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 ConsoleOutput
       
   Methods defined here:
__del__(self)
__init__(self)
beginCapture(self)
clear(self)
endCapture(self)
getLines(self)
write(self, text)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'pyui.dialogs'
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 Dialog(pyui.widgets.Frame)
      ##################################
Dialog
#
##################################
 
  
Method resolution order:
Dialog
pyui.widgets.Frame
pyui.base.Window
pyui.base.Base

Methods defined here:
__init__(self, x=-1, y=-1, w=300, h=200, title=None)
close(self, value=1)
destroy(self)
doModal(self, cb=None)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'pyui.dialogs'
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.widgets.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)
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 FileDialog(Dialog)
      A dialog to allow the user to select a file. Allows regex wildcard filters
and calls the "callback" method when done.
 
Always use the forward slash '/' to separate paths, not the other slash ''.
 
The filter matches using python regular expressions. Note that the wildcard for
matching anything is ".*" not just "*" as the asterisk is a "repeating character"
modifier in the regular expression language...
 
  
Method resolution order:
FileDialog
Dialog
pyui.widgets.Frame
pyui.base.Window
pyui.base.Base

Methods defined here:
__init__(self, startDir, callback, filter='.*')
_pyuiClose(self, button)
_pyuiDoubleClicked(self, item)
_pyuiFilter(self, filter)
_pyuiOpen(self, button)
Open a file or a directory
_pyuiSelected(self, item)
_pyuiUp(self, button)
populateDir(self)
Load the current directory. Load directories first, then all
the files.
setCurrentDir(self, newDir)
This will fail if newDir is not a valid directory.

Data and non-method functions defined here:
__doc__ = 'A dialog to allow the user to select a file. All...difier in the regular expression language...\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.dialogs'
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 Dialog:
close(self, value=1)
destroy(self)
doModal(self, cb=None)

Methods inherited from pyui.widgets.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)
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 LineDisplay(pyui.base.Base)
      #####################
# box to display lines of text for console output
# or chat windows...
####################
 
   Methods defined here:
__init__(self)
_pyuiScrollPos(self, event)
addDisplayLine(self, displayLine, color)
addLine(self, line, color=None)
This adds lines to the display. it does text wrapping.
clear(self)
destroy(self)
draw(self, renderer)
resize(self, w, h)
rewrapAll(self)
splitLine(self, line)
Works like split(), but also returns whitespace between words
wrapLine(self, line, color)
Add a line of text to the display lines list with wrapping.

Data and non-method functions defined here:
__doc__ = None
__module__ = 'pyui.dialogs'
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.
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 StdDialog(Dialog)
       
  
Method resolution order:
StdDialog
Dialog
pyui.widgets.Frame
pyui.base.Window
pyui.base.Base

Methods defined here:
__init__(self, title, text)
_pyuiCancel(self, button)
_pyuiOK(self, button)
destroy(self)
draw(self, renderer)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'pyui.dialogs'
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 Dialog:
close(self, value=1)
doModal(self, cb=None)

Methods inherited from pyui.widgets.Frame:
_pyuiCloseButton(self)
_pyuiMouseDown(self, event)
_pyuiMouseMotion(self, event)
_pyuiMouseUp(self, event)
addMenuBar(self, menuBar)
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)
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
             EVENT_OUTPUT = 17383
__file__ = r'.\pyui\dialogs.pyc'
__name__ = 'pyui.dialogs'