as from encode_bitmaps.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39136
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
import wx
import img2img
-
+app = None
def main():
# some bitmap related things need to have a wxApp initialized...
if wx.GetApp() is None:
+ global app
app = wx.PySimpleApp()
img2img.main(sys.argv[1:], wx.BITMAP_TYPE_PNG, ".png", __doc__)
return fp.getvalue()
-
+app = None
def main(args):
if not args or ("-h" in args):
print __doc__
# some bitmap related things need to have a wxApp initialized...
if wx.GetApp() is None:
+ global app
app = wx.PySimpleApp()
append = 0
"""
import sys
-
import wx
-
import img2img
+app = None
def main():
# some bitmap related things need to have a wxApp initialized...
if wx.GetApp() is None:
+ global app
app = wx.PySimpleApp()
img2img.main(sys.argv[1:], wx.BITMAP_TYPE_XPM, ".xpm", __doc__)