wx.ImageDialog
derived from Dialog
allows the user
to display images and to select an image.
Default class constructor. |
|
Change list of file types to be supported |
|
Get directory |
|
Get selected file |
|
ImageDialog
(wx.Dialog)¶wx.ImageDialog
derived from Dialog
allows the user
to display images and to select an image.
__init__
(self, parent, set_dir = None)¶Default class constructor.
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
ft_tuple (tuple) –
tuple of files types, e.g. to support just .gif and .png you would use:
(“PNG (.png)”, “.png”))
DisplayDir
(self)¶GetDirectory
(self)¶Get directory
get the current directory
GetFile
(self)¶Get selected file
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)¶