Since Python uses indenting as part of its syntax, I used periods to symbolize indentation, since otherwise most email readers would scrub out my indents. <br><br>Honestly, if you didn&#39;t pick up on that, your chances of successfully diving into using the wxPython gui framework are kind of slim. I&#39;d recommend first working with some basic Python tutorials.<br>
<br>In the meantime, I have a feeling the Pygame example that someone sent over will be a bit simpler.<br><br><br><br><div class="gmail_quote">On Sat, Jul 31, 2010 at 5:55 PM, Jack Uretsky <span dir="ltr">&lt;<a href="mailto:jlu@hep.anl.gov">jlu@hep.anl.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">        Actually, I did in what I tried to run.  What I posted was a verbatim copy from your e-mail.  But I&#39;m getting an invalid syntax exception at a different place, as follows:<br>

_________________________________________<br>
import wx<br>
<br>
class PicWin(wx.Frame):<div class="im"><br>
        def __init__(self, parent, id):<br></div><div class="im">
                wx.Frame.__init__(self, parent, id, &quot;Window. Title&quot;, size=(200,200), pos<br>
=(50,50), style = wx.DEFAULT_FRAME_STYLE)<br>
                panel = wx.Panel(self, -1)<br></div>
                bmp = wx(&quot;a_4.jpg&quot;, wx.BITMAP_TYPE_ANY.ConvertToBitmap()<div class="im"><br>
                self.mainPic=wx.StaticBitmap(panel, -1, bmp)<br>
                self.Show()<br>
<br>
app = wx.App(redirect=0)<br></div>
PicWin(None, -1)<br>
app.Mainloop0()<br>
____________________________________<br>
        The error is marked (it doesn&#39;t show on the e-mail) on the &quot;self&quot;<br>
in the &quot;self.mainPic&quot; line.  I&#39;ve no idea what the problem is.<div class="im"><br>
                                                Regards,<br>
                                                        Jack<br>
&quot;Trust me.  I have a lot of experience at this.&quot;<br>
                General Custer&#39;s unremembered message to his men,<br>
                just before leading them into the Little Big Horn Valley<br>
<br>
<br>
<br>
<br></div><div><div></div><div class="h5">
On Fri, 30 Jul 2010, Alec Bennett wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You didn&#39;t delete the periods that I put in to simulate indentations.<br>
<br>
<br>
<br>
On Fri, Jul 30, 2010 at 9:06 AM, donn &lt;<a href="mailto:donn.ingle@gmail.com" target="_blank">donn.ingle@gmail.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 30/07/2010 17:48, Jack Uretsky wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
def__init__(self, parent, id):<br>
^<br>
SyntaxError: invalid syntax<br>
<br>
</blockquote>
I imagine the spacing in the email was not preserved, but even so, Python<br>
is giving you a little arrow &quot;^&quot; to go look at....<br>
<br>
def, SPACE, dunder-init... etc.<br>
def __init...<br>
<br>
<br>
\d<br>
<br>
_______________________________________________<br>
Image-SIG maillist  -  <a href="mailto:Image-SIG@python.org" target="_blank">Image-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/image-sig" target="_blank">http://mail.python.org/mailman/listinfo/image-sig</a><br>
<br>
</blockquote>
<br>
</blockquote>
</div></div></blockquote></div><br>