26. imageViewer — A general image viewer

A general image viewer

Part of this code was borrowed from the TrollTech Qt examples.

class imageViewer.ImageViewer(parent=None, path=None)

ImageViewer objects have the following methods:

openfile(filename=None)
print_()
zoomIn()
zoomOut()
normalSize()
fitToWindow()
fitToImage()
about()
createActions()
createMenus()
updateActions()
scaleImage(factor)
adjustScrollBar(scrollBar, factor)

Functions defined in the module imageViewer

imageViewer.tr(s)
imageViewer.main()

Documentation

Previous topic

25. imagecolor — Using bitmap images as colors.

Next topic

27. scriptMenu — Menu with pyFormex scripts.

This Page