wx.lib.imagebrowser.ImageDialog¶
wx.ImageDialog
derived from Dialog
allows the user
to display images and to select an image.
Class Hierarchy¶
Known Superclasses¶
Methods Summary¶
Default class constructor. |
|
Change list of file types to be supported |
|
Get directory |
|
Get selected file |
|
Class API¶
- class ImageDialog(wx.Dialog)¶
wx.ImageDialog
derived fromDialog
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)¶