Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package agw :: Module thumbnailctrl |
|
Description:
Thumbnailctrl is a widget that can be used to display a series of images in a "thumbnail" format; it mimics, for example, the windows explorer behavior when you select the "view thumbnails" option. Basically, by specifying a folder that contains some image files, the files in the folder are displayed as miniature versions of the actual images in a wx.scrolledwindow.
The code is partly based on wxVillaLib, a wxWidgets implementation of this control. However, ThumbnailCtrl wouldn't have been so fast and complete without the suggestions and hints from Peter Damoc. So, if he accepts the mention, this control is his as much as mine.
Usage:
ThumbnailCtrl.__init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size = wx.DefaultSize, thumboutline=THUMB_OUTLINE_RECT, thumbfilter=THUMB_FILTER_IMAGES):
For the full listing of the input parameters, see the ThumbnailCtrl __init__() method.
Methods and Settings:
With ThumbnailCtrl you can:
For more info on methods and initial styles, please refer to the __init__() method for ThumbnailCtrl or to the specific functions.
|=========================================================================== | | NOTE: ThumbnailCtrl requires PIL (Python Imaging Library) library to | | be installed. | |=========================================================================== |
Side-note: using highlight thumbnails on mouse hovering may be slow on slower computers.
ThumbnailCtrl control is freeware and distributed under the wxPython license.
Latest revision: andrea gavana @ 15 Oct 2008, 22.30 GMT Version 0.7
Classes | |
---|---|
ScrolledThumbnail |
|
Thumb |
|
ThumbnailCtrl |
|
ThumbnailEvent |
Function Summary | |
---|---|
Compares two thumbs in terms of file names and ids. | |
getDataBL()
| |
getDataSH()
| |
getDataTR()
| |
GetMondrianBitmap()
| |
GetMondrianData()
| |
GetMondrianImage()
| |
getShadow()
| |
Convert paths to the platform-specific separator | |
Sort files in alphabetical order. |
Function Details |
---|
CmpThumb(first, second)Compares two thumbs in terms of file names and ids. |
opj(path)Convert paths to the platform-specific separator |
SortFiles(items, sorteditems, filenames)Sort files in alphabetical order. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:52:10 2009 | http://epydoc.sf.net |