I remember seeing somewhere saying that the "wx.StaticBitmap" is <br>only for small image (64x64?), is that true?<br><br><div><span class="gmail_quote">On 6 Jan 2006 07:01:24 -0800, <b class="gmail_sendername"><a href="mailto:svbrk@start.no">
svbrk@start.no</a></b> <<a href="mailto:svbrk@start.no">svbrk@start.no</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You can f.i. use wxPython (<a href="http://www.wxPython.org">www.wxPython.org</a>). Here is a compact and<br>ugly, but (almost) minimal, example of a python script that shows an<br>image file:<br><br>import wx<br>a = wx.PySimpleApp
()<br>wximg = wx.Image('img.jpg',wx.BITMAP_TYPE_JPEG)<br>wxbmp=wximg.ConvertToBitmap()<br>f = wx.Frame(None, -1, "Show JPEG demo")<br>f.SetSize( wxbmp.GetSize() )<br>wx.StaticBitmap(f,-1,wxbmp,(0,0))<br>f.Show(True)
<br>def callback(evt,a=a,f=f):<br> # Closes the window upon any keypress<br> f.Close()<br> a.ExitMainLoop()<br>wx.EVT_CHAR(f,callback)<br>a.MainLoop()<br><br>-svein<br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">
http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br>