I've been working on Tkinter, and setting a message box. It worked fine, but I didn't really like the fact that the text displayed was in a small position in the window. Take a look at this code and you'll know what I mean.

    def About(self):
        text = Message(self, text='''   .:: About Python ::.
Blah blah blah blah.''')
        text.grid(column=1, row = 5 and 4)
        text.pack()

I don't know how to make the text 'spread out' over the entire screen. Take a look at this photo to understand it.
And I'll be glad if someone could help me find a way of making it print once, not multiple times.
http://imgur.com/rgAxH -- Image

I also tried the Label widget, and I'm stuck with the grid positioning now. Just couldn't figure out how to move a Label to the right.

If you want to span over 2 rows (rows 4 and 5) use:
text.grid(row=4, column=1, rowspan=2)

If the user presses the button twice, it clears the screen.
Preferrably, I prefer clearing the screen once the user presses another button.

Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.