Reputation: 4108
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
Reputation: 386
use gtk.Entry
?
http://www.pygtk.org/docs/pygtk/class-gtkentry.html
Upvotes: 5
Reputation: 4108
Oh I found it. I suppose the name makes sense...
http://www.pygtk.org/docs/pygtk/class-gtkentry.html
Upvotes: 0