Dabo.ui.imageFromData

From Dabo Wiki
Revision as of 15:51, 14 May 2020 by Ed (talk | contribs) (Created page with "== Signature: == <syntaxhighlight lang="python"> dabo.ui.imageFromData(data) </syntaxhighlight> == Description: == Using the <code>img2py.py</code> script in the <code>wx.to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Signature:

dabo.ui.imageFromData(data)

Description:

Using the img2py.py script in the wx.tools folder, you can convert an image to a text stream that can be included in a Python script. This allows for greater portability, since you don't need to distribute a separate image file.

Returns:

wx.Image object.

Comments:

Rarely used by a programmer; mostly used internally by the framework.