wx Package

wx Package

clipboard Module

color Module

dialog Module

Dialog utilities.

class pyface.wx.dialog.OpenDirDialog(parent=None, **kw)

Bases: wx._windows.DirDialog

An open-directory dialog.

class pyface.wx.dialog.OpenFileDialog(parent=None, **kw)

Bases: wx._windows.FileDialog

An open-file dialog.

class pyface.wx.dialog.SaveFileAsDialog(parent=None, **kw)

Bases: wx._windows.FileDialog

A save-file dialog.

pyface.wx.dialog.confirmation(parent, message, title=None, default=128)

Displays a confirmation dialog.

pyface.wx.dialog.error(parent, message, title=None)

Displays a modal error dialog.

pyface.wx.dialog.information(parent, message, title=None)

Displays a modal information dialog.

pyface.wx.dialog.warning(parent, message, title=None)

Displays a modal warning dialog.

pyface.wx.dialog.yes_no_cancel(parent, message, title=None, default=128)

Displays a Yes/No/Cancel dialog.

divider Module

A thin visual divider.

class pyface.wx.divider.Divider(parent, id, **kw)

Bases: wx._controls.StaticLine

A thin visual divider.

drag_and_drop Module

Drag and drop utilities.

class pyface.wx.drag_and_drop.Clipboard

The clipboard is used when dragging and dropping Python objects.

class pyface.wx.drag_and_drop.FileDropTarget(handler)

Bases: wx._misc.FileDropTarget

Drop target for files.

OnDropFiles(x, y, filenames)

Called when the files have been dropped.

class pyface.wx.drag_and_drop.PythonDropSource(source, data, handler=None, allow_move=True)

Bases: wx._misc.DropSource

Drop source for Python objects.

on_dropped(drag_result)

Called when the data has been dropped.

class pyface.wx.drag_and_drop.PythonDropTarget(handler)

Bases: wx._misc.DropTarget

Drop target for Python objects.

OnData(x, y, default_drag_result)

Called when OnDrop returns True.

OnDragOver(x, y, default_drag_result)

Called when a data object is being dragged over the target.

OnDrop(x, y)

Called when the user drops a data object on the target.

Return ‘False’ to veto the operation.

OnLeave()

Called when the mouse leaves the drop target.

font Module

Font utilities.

pyface.wx.font.clone_font(font)

Clones the specified font.

pyface.wx.font.decrease_font_size(window, delta=2)

Recursively decreases the font size starting from ‘window’.

pyface.wx.font.increase_font_size(window, delta=2)

Recursively increases the font size starting from ‘window’.

pyface.wx.font.set_bold_font(window)

Set ‘window’s font to be bold.

pyface.wx.font.set_font_size(window, size)

Recursively sets the font size starting from ‘window’.

image Module

image_cache Module

An image cache.

class pyface.wx.image_cache.ImageCache(width, height)

An image cache.

get_image(filename)

Returns the specified image (currently as a bitmap).

image_list Module

A cached image list.

class pyface.wx.image_list.ImageList(width, height)

Bases: wx._gdi.ImageList

A cached image list.

GetIndex(filename)

Returns the index of the specified image.

The image will be loaded and added to the image list if it is not already there.

lazy_switcher Module

pager Module

progress_meter Module

class pyface.wx.progress_meter.ProgressDialog(*args, **kwds)

Bases: wx._windows.ProgressDialog

SetButtonLabel(title)

Change the Cancel button label to something else eg Stop.

scrolled_message_dialog Module

class pyface.wx.scrolled_message_dialog.ScrolledMessageDialog(parent, msg, caption, pos=wx.Point(-1, -1), size=(500, 300))

Bases: wx._windows.Dialog

shell Module

sized_panel Module

A panel sized by a sizer.

class pyface.wx.sized_panel.SizedPanel(parent, wxid, sizer, **kw)

Bases: wx._windows.Panel

A panel sized by a sizer.

Fit()

Resizes the panel to match the sizer’s minimal size.

Layout()

Lays out the sizer without changing the panel geometry.

spacer Module

A panel used as a spacer.

It is in a separate class so that you can set the background color in a single place to give visual feedback on sizer layouts (in particular, FlexGridSizer layouts).

class pyface.wx.spacer.Spacer(parent, id, **kw)

Bases: wx._windows.Panel

A panel used as a spacer.

switcher Module