Re: that's enough

Jack Uretsky <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
 	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)
 		self.Show()

app = wx.App(redirect=0)
PicWin(None, -1)
app.Mainloop0()
____________________________________
 	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.
 						Regards,
 							Jack
"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 <[email protected]> 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, Python
>> is giving you a little arrow "^" to go look at....
>>
>> def, SPACE, dunder-init... etc.
>> def __init...
>>
>>
>> \d
>>
>> _______________________________________________
>> Image-SIG maillist  -  [email protected]
>> http://mail.python.org/mailman/listinfo/image-sig
>>
>
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.