 wx.lib.agw.thumbnailctrl.ThumbnailCtrl¶
 wx.lib.agw.thumbnailctrl.ThumbnailCtrl¶ThumbnailCtrl is a widget that can be used to display a series of images in
a “thumbnail” format.
 Class Hierarchy¶
 Class Hierarchy¶ Inheritance diagram for class ThumbnailCtrl:
Inheritance diagram for class ThumbnailCtrl:
 Control Appearance¶
 Control Appearance¶ Known Superclasses¶
 Known Superclasses¶ Methods Summary¶
 Methods Summary¶| Default class constructor. | |
| Deletes the selected thumbnails and their associated files. | |
| Returns whether the folder combobox is shown. | |
| Returns the working directory with images. | |
| Returns list of file info objects for files of particular extensions. | |
| Handles the  | |
| Recreates the folder combobox every time a new directory is explored. | |
| Set the background color of the widget. | |
| Shows/Hide the top folder  | |
| Shows thumbnails for a particular folder. | |
| Sets whether the user wants to show file names under the thumbnails or not. | 
 Class API¶
 Class API¶ThumbnailCtrl is a widget that can be used to display a series of images in
a “thumbnail” format.
Default class constructor.
parent – parent window. Must not be None;
id – window identifier. A value of -1 indicates a default value;
pos – the control position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxPython, depending on platform;
size – the control size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxPython, depending on platform;
thumboutline – outline style for ThumbnailCtrl, which may be:
| Outline Flag | Value | Description | 
|---|---|---|
| 
 | 0 | No outline is drawn on selection | 
| 
 | 1 | Full outline (image+caption) is drawn on selection | 
| 
 | 2 | Only thumbnail bounding rectangle is drawn on selection (default) | 
| 
 | 4 | Only image bounding rectangle is drawn. | 
thumbfilter – filter for image/video/audio files. Ignored.
imagehandler – can be PILImageHandler if PIL is installed (faster), or
NativeImageHandler which only uses wxPython image methods.
Deletes the selected thumbnails and their associated files. .. warning:: This method deletes the original files too.
thumbs – List of indexes to thumbnails.
Returns whether the folder combobox is shown.
Returns the working directory with images.
Returns list of file info objects for files of particular extensions.
directory – the folder containing the images to thumbnail;
fileExtList – a Python list of file extensions to consider.
Handles the wx.EVT_COMBOBOX for the folder combobox.
event – a CommandEvent event to be processed.
Recreates the folder combobox every time a new directory is explored.
newdir – the new folder to be explored.
Set the background color of the widget.
colour – the color to which the background is set.
Shows/Hide the top folder ComboBox.
show – True to show the combobox, False otherwise.
Shows thumbnails for a particular folder.
folder – a directory containing the images to thumbnail;
Sets whether the user wants to show file names under the thumbnails or not.
show – True to show file names under the thumbnails, False otherwise.