resourcepackage.wxgenerators
index
p:\resourcepackage\wxgenerators.py

wxPython-specific data-as-code extensions to defaultgenerators

 
Modules
            
clip_dndc
cmndlgsc
controls2c
controlsc
resourcepackage.defaultgenerators
eventsc
filesysc
fontsc
framesc
gdic
imagec
wxPython.tools.img2img
mdic
misc2c
miscc
os
printfwc
sizersc
stattoolc
streamsc
sys
tempfile
types
utilsc
windows2c
windows3c
windowsc
wxPython.wx
wxPython.wxc
 
Classes
            
SimpleGenerator
wxImageGenerator
 
class wxImageGenerator(SimpleGenerator)
      wxPython specific handling of Image formats
 
   Methods defined here:
getData(self, source, package=None)
Get the image as a .png-encoded string
 
This is adapted directly from img2py.py
getHeader(self, source, destination, package=None)
Get the header, written before the data variable

Data and non-method functions defined here:
__doc__ = 'wxPython specific handling of Image formats'
__module__ = 'resourcepackage.wxgenerators'

Methods inherited from SimpleGenerator:
__call__(self, source, destination, package=None)
Encode source in destination for package
__repr__(self)
getDataRepr(self, source, destination, package=None)
data as Python code assigning a value to variable "data"
getFooter(self, source, destination, package=None)
Get the footer, written after the data variable
 
Data
             GENERATOR = wxImageGenerator (singleton)
HEADER = '\n### wxPython specific functions\noriginalExtensi...)\n\ticon.CopyFromBitmap(getBitmap())\n\treturn icon\n'
format = '.tiff'
formats = ['.png', '.jpg', '.ico', '.tif', '.bmp', '.xpm', '.gif', '.pcx', '.pnm', '.iff', '.jpeg', '.tiff']
generators = {'.bmp': wxImageGenerator (singleton), '.gif': wxImageGenerator (singleton), '.ico': wxImageGenerator (singleton), '.iff': wxImageGenerator (singleton), '.jpeg': wxImageGenerator (singleton), '.jpg': wxImageGenerator (singleton), '.pcx': wxImageGenerator (singleton), '.png': wxImageGenerator (singleton), '.pnm': wxImageGenerator (singleton), '.tif': wxImageGenerator (singleton), ...}