Hi all
I am attaching a Text area to my gui program.

For some reason, whenever i try to write/put a string that has a
length greater than the width of the text area,
It changes line automatically, (seems like it's not adding new line chracter to existing string, but just on the display) rather than hide beyond the Textbox area.

Since the size of string varies,
I already attached a horizontal scrollbar to this text area, and
want to use its scrolling feature, instead of the textbox changes line when it gets
a string with greater the length than its width.

Anyone have any idea how to fix this problem?
I just defined the text area normally, like

text = Text(self.frame, height=5, width=40, bg = "white")

Recommended Answers

All 3 Replies

Effbot is a good resource. You might want to bookmark it and New Mexico Tech's site http://infohost.nmt.edu/tcc/help/pubs/tkinter/ for future reference. Please mark this post "Solved" so no one wastes their time on a solved post.

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.