phoenix_title wx.lib.imagebrowser.ImageDialog

wx.ImageDialog derived from Dialog allows the user to display images and to select an image.


class_hierarchy Class Hierarchy

Inheritance diagram for class ImageDialog:

super_classes Known Superclasses

wx.Dialog


method_summary Methods Summary

__init__

Default class constructor.

ChangeFileTypes

Change list of file types to be supported

DisplayDir

GetDirectory

Get directory

GetFile

Get selected file

GetFiles

OnCancel

OnChooseDirectory

OnDirectoryTextSet

OnListClick

OnListDClick

OnOk

OnSetType

OnUpDirectory

ResetFiles

SetListValue


api Class API

class ImageDialog(wx.Dialog)

wx.ImageDialog derived from Dialog allows the user to display images and to select an image.


Methods

__init__(self, parent, set_dir = None)

Default class constructor.

Parameters:
  • parent (wx.Window) – parent window.

  • set_dir (string) – path to set as working directory



ChangeFileTypes(self, ft_tuple)

Change list of file types to be supported

Parameters:

ft_tuple (tuple) –

tuple of files types, e.g. to support just .gif and .png you would use:

((“GIF (.gif)”, “.gif”),

(“PNG (.png)”, “.png”))



DisplayDir(self)


GetDirectory(self)

Get directory

Returns:

get the current directory



GetFile(self)

Get selected file

Returns:

File selected or None



GetFiles(self)


OnCancel(self, event)


OnChooseDirectory(self, event)


OnDirectoryTextSet(self, event)


OnListClick(self, event)


OnListDClick(self, event)


OnOk(self, event)


OnSetType(self, event)


OnUpDirectory(self, event)


ResetFiles(self)


SetListValue(self, val)