Dabo.ui.bitmapFromData: Difference between revisions

From Dabo Wiki
Jump to navigationJump to search
(Created page with "== Signature == <syntaxhighlight lang="python"> dabo.ui.bitmapFromData(data) </syntaxhighlight> == Description == Using the img2py.py script in the wx.tools folder, you can c...")
 
No edit summary
 
Line 5: Line 5:


== Description ==
== 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.
Using the <code>img2py.py</code> script in the <code>wx.tools</code> 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 ==
== Returns ==

Latest revision as of 15:44, 14 May 2020

Signature

dabo.ui.bitmapFromData(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.Bitmap object.

Comments

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