[GRASS-SVN] r47058 - grass-addons/grass7/gui/wxpython/wx.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 8 00:13:36 EDT 2011
Author: sudeepsingh
Date: 2011-07-07 21:13:35 -0700 (Thu, 07 Jul 2011)
New Revision: 47058
Removed:
grass-addons/grass7/gui/wxpython/wx.wms/image.py
Log:
Deleted File, image.py
Deleted: grass-addons/grass7/gui/wxpython/wx.wms/image.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/image.py 2011-07-08 04:13:12 UTC (rev 47057)
+++ grass-addons/grass7/gui/wxpython/wx.wms/image.py 2011-07-08 04:13:35 UTC (rev 47058)
@@ -1,21 +0,0 @@
-import wx
-import cStringIO
-
-class ImagePanel(wx.Panel):
- def displayImage():
- try:
- imageFile = 'map.png'
- data = open(imageFile, "rb").read()
- stream = cStringIO.StringIO(data)
- bmp = wx.BitmapFromImage( wx.ImageFromStream( stream ))
- wx.StaticBitmap(self, -1, bmp, (5, 5))
- except IOError:
- print "Image file %s not found" % imageFile
- raise SystemExit
-
-def NewImageFrame():
- app = wx.PySimpleApp()
- frame = wx.Frame(None, -1, "Map Display", size = (400, 300))
- ImagePanel(frame1,-1)
- frame.Show(1)
- app.MainLoop()
More information about the grass-commit
mailing list