[Tutor] GUI new project

johnf jfabiani at yolo.com
Mon Oct 23 07:26:11 CEST 2006


On Sunday 22 October 2006 20:03, Luke Paireepinart wrote:
> >       """Create the Second ListBox"""
> >
> >       self.lbRSSItems = Listbox(self, exportselection=0
> >                                 ,command=self.reveal
> >                                 , relief=SUNKEN)
>
> Because whitespace is important in python,
> you can't arbitrarily put newlines into your text.
> Your program is getting confused because it doesn't know what ',
> relief=SUNKEN)' means.
> Try putting a '\' before your newlines.
> Like:
> x = \
> 'a'
>
>
> HTH,
> -Luke
I'm not an expert Luke but I thought a statement can take more than one line 
when enclosed in parentheses, square brackets or braces (also when triple 
quoted).  Is this correct????

John


More information about the Tutor mailing list