nigel wrote:
> w =Label(root, text="Congratulations you have made it this far,just a few more
> questions then i will be asking you some")
>
> The problem i have is where i have started to write some text"Congratulations
> you have made it this far,just a few more questions then i will be asking you
> some")
> I would actually like to add some text but it puts it all on one line.I would
> like to be able to tell it to start a new line.


Just use \n in your string, e.g.:

w = Label(root, text="Line 1\nLine 2\nLine 3")

Or a triple-quoted string will do the trick:

w = Label(root, text="""Line 1
Line 2
Line 3""")

--Ben

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to