[Image-SIG] that's enough
wrybread at gmail.com
Sun Aug 1 04:21:42 CEST 2010
Since Python uses indenting as part of its syntax, I used periods to
symbolize indentation, since otherwise most email readers would scrub out my
Honestly, if you didn't pick up on that, your chances of successfully diving
into using the wxPython gui framework are kind of slim. I'd recommend first
working with some basic Python tutorials.
In the meantime, I have a feeling the Pygame example that someone sent over
will be a bit simpler.
On Sat, Jul 31, 2010 at 5:55 PM, Jack Uretsky <jlu at hep.anl.gov> wrote:
> Actually, I did in what I tried to run. What I posted was a
> verbatim copy from your e-mail. But I'm getting an invalid syntax exception
> at a different place, as follows:
> import wx
> class PicWin(wx.Frame):
> def __init__(self, parent, id):
> wx.Frame.__init__(self, parent, id, "Window. Title",
> size=(200,200), pos
> =(50,50), style = wx.DEFAULT_FRAME_STYLE)
> panel = wx.Panel(self, -1)
> bmp = wx("a_4.jpg", wx.BITMAP_TYPE_ANY.ConvertToBitmap()
> self.mainPic=wx.StaticBitmap(panel, -1, bmp)
> app = wx.App(redirect=0)
> PicWin(None, -1)
> The error is marked (it doesn't show on the e-mail) on the "self"
> in the "self.mainPic" line. I've no idea what the problem is.
> "Trust me. I have a lot of experience at this."
> General Custer's unremembered message to his men,
> just before leading them into the Little Big Horn Valley
> On Fri, 30 Jul 2010, Alec Bennett wrote:
> You didn't delete the periods that I put in to simulate indentations.
>> On Fri, Jul 30, 2010 at 9:06 AM, donn <donn.ingle at gmail.com> wrote:
>> On 30/07/2010 17:48, Jack Uretsky wrote:
>>> def__init__(self, parent, id):
>>>> SyntaxError: invalid syntax
>>>> I imagine the spacing in the email was not preserved, but even so,
>>> is giving you a little arrow "^" to go look at....
>>> def, SPACE, dunder-init... etc.
>>> def __init...
>>> Image-SIG maillist - Image-SIG at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Image-SIG