Ralphleon
Ralphleon

Reputation: 4108

PyGTK TextView that only accepts single lines

I feel rather silly to ask this, but how does one create a TextView that only accepts single lines? Most other gui toolkits have a method such as "setMultiline" etc, but PyGTK seems to really enjoy multiple lines. Some other languages have "TextFields" for these simpler text boxes.

http://www.pygtk.org/docs/pygtk/class-gtktextview.html#method-gtktextview--set-justification

Upvotes: 2

Views: 578

Answers (2)

yogiebiz
yogiebiz

Reputation: 386

use gtk.Entry?

http://www.pygtk.org/docs/pygtk/class-gtkentry.html

Upvotes: 5

Ralphleon
Ralphleon

Reputation: 4108

Oh I found it. I suppose the name makes sense...

http://www.pygtk.org/docs/pygtk/class-gtkentry.html

Upvotes: 0

Related Questions