imageInspector

class lib.pyWx.imageInspector.AddTagDialog(parent, keys, *args, **keyw)

Bases: lib.pyWx.dialogsInspector.AddTagDialog

GetModal()

The dialog should be invoked by this method.

Returns:tag, value
Return type:string, *
OnAdd(event)
This gets called when the Add button is pressed.
OnTagText(event)

This event is binded to the tag wx.TextCtrl:

self.Bind(wx.EVT_TEXT, self.OnTagText, self.tag)

class lib.pyWx.imageInspector.Browser(parent, tags, content_ctrl_keyw, *args, **keyw)

Bases: lib.pyWx.tag.Browser

ContentCtrl
alias of GridTag
GetPaintMessage()
class lib.pyWx.imageInspector.Frame(parent, filename='', icon=None, thumb_size=(128, 128), *args, **kwds)

Bases: wx._windows.Frame

class Browser(parent, tags, content_ctrl_keyw, *args, **keyw)

Bases: lib.pyWx.tag.Browser

ContentCtrl
alias of GridTag
GetPaintMessage()
Frame.GetGrid()
Frame.OnActivate(event)
Frame.OpenImage(filename)
Frame.OpenImages(filenames)
Frame.SetTitleFilename(filename)
To be called from the grid.
Frame.UpdateIfNeeded(event=None)
class lib.pyWx.imageInspector.Grid(parent, thumb_size=(128, 128))

Bases: lib.pyWx.droplet.Mixin, wx.grid.Grid

AddColumnRow(col)
AddRow()
Ask(message, title='')
AskText(question, value='', title='')
ChangeRowValues(row)
CopyCellValue(row, col)
CopyRowLabel(row)
CreateRowLabelMenu(menu, row)
DeleteCell(row, col)
DeleteCols(pos=0, num=1)
DeleteRows(pos=0, num=1)
GetCellRowCol(event=None)
OnColLabelPaint(evt)
OnCornerLabelPaint(evt)
OnDrop(filenames, x, y)
OnGridCellChange(event)
OnGridCellLeftClick(evt)
OnGridCellRightClicked(event)
(row, evt) -> display a popup menu when a row label is right clicked
OnGridColLabelRightClicked(col)
OnGridEditorHidden(evt)
OnGridLabelLeftDclicked(event)
OnGridLabelRightClicked(event)
OnGridRowLabelRightClicked(row)
OnKeyDown(event)
OnRowLabelPaint(evt)
OpenImage(filename)
OpenImages(filenames)
ProcessKey(key_code, row, col, shift, ctrl, alt)
RefreshAll(update_column=False, force_thumbs=False)
RenameRowLabelValue(row)
SetTitleFilename(filename)
ShowError(message, title=u'Image Inspector')
ShowLog()
ShowMessage(message, title='', style=260)
class Table(thumb_size=(128, 128))

Bases: wx.grid.PyGridTableBase

DeleteCols(pos=0, num=1)
DeleteRows(pos=0, num=1)
GetAttr(row, col, kind)

Get the attribute of a grid cell. The attribute defines:

  • color (odd/even rows)
  • read-only
Parameters:
  • row (int) – row
  • col (int) – column
  • kind – not used (but obligatory for wxPython)
Returns:

attribute

GetColLabelValue(col)
GetNumberCols()
GetNumberRows()
GetRowLabelValue(row)
GetValue(row, col)
IsEditableCell(row, col)
IsEmptyCell(row, col)
SetRowColours(colors=(wx.Colour(254, 255, 255, 255), wx.Colour(250, 250, 250, 255)))

Define the base attribute for odd and even rows:

  • background color
  • text color
  • selected color

The selected color is based on the system (gtk, windows or mac os x).

SetRowLabelValue(row, value)
SetValue(row, col, value)
Grid.UpdateIfNeeded()
Grid.UpdateRowsColsNumbers()
Only consider adding or removing rows.
Grid.UpdateThumbs(force_thumbs=False)
Grid.UpdateValues()
Update all displayed values
Grid.show_error(message, title)
Grid.show_message(message, title='', style=260)
class lib.pyWx.imageInspector.GridTag(parent, thumb_size=(128, 128))

Bases: lib.pyWx.imageInspector.OpenMixin, lib.pyWx.tag.ContentMixin, lib.pyWx.imageInspector.Grid

IsEmpty()
SetFilter(filter=None)
SetTag(tag)
Filters from all_data to tag_data
class lib.pyWx.imageInspector.OpenMixin

Bases: object

GetTopLevelParent()
OnOpen(event)
OnOpenUrl(event)
OpenImage(filename)
OpenImages(filenames)
class lib.pyWx.imageInspector.Table(thumb_size=(128, 128))

Bases: wx.grid.PyGridTableBase

DeleteCols(pos=0, num=1)
DeleteRows(pos=0, num=1)
GetAttr(row, col, kind)

Get the attribute of a grid cell. The attribute defines:

  • color (odd/even rows)
  • read-only
Parameters:
  • row (int) – row
  • col (int) – column
  • kind – not used (but obligatory for wxPython)
Returns:

attribute

GetColLabelValue(col)
GetNumberCols()
GetNumberRows()
GetRowLabelValue(row)
GetValue(row, col)
IsEditableCell(row, col)
IsEmptyCell(row, col)
SetRowColours(colors=(wx.Colour(254, 255, 255, 255), wx.Colour(250, 250, 250, 255)))

Define the base attribute for odd and even rows:

  • background color
  • text color
  • selected color

The selected color is based on the system (gtk, windows or mac os x).

SetRowLabelValue(row, value)
SetValue(row, col, value)
lib.pyWx.imageInspector.empty_bitmap(width, height)
lib.pyWx.imageInspector.getPencilBitmap()
lib.pyWx.imageInspector.getPencilData()
lib.pyWx.imageInspector.getPencilImage()

Previous topic

imageFileBrowser

Next topic

inspector