wx.lib.imagebrowser.ImageDialog¶wx.ImageDialog derived from Dialog allows the user
to display images and to select an image.
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 |
Class API¶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.
| Parameters: |
|
|---|
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:
|
|---|
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)¶