Ankur S
Ankur S

Reputation: 588

How to align text to TOP in a tkinter Entry widget

I want for the text in my entry widget to start appearing at the top as if it was top justified. With tkinter.Entry's justify option you can justify the text to the left, right or center, but not top or bottom. Specifically, I would like to have an option to do the function of the highlighted button below in google docs.

enter image description here

Upvotes: 1

Views: 2789

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 385910

An entry widget only accepts a single line of text. There is no concept of vertical alignment in an Entry widget.

The Text widget supports multiple lines, but it also doesn't have any support for vertical alignment.

Upvotes: 2

Related Questions