Reputation: 29
I'm a total PyGTK noob, just to get that out there. I'm trying to set an entry's text with this code:
def on_button1_clicked(self, builder, data = None):
gtk.Entry(txtInput).set_text("Hello")
but when I click the button I get a type error asking for an integer somewhere on the second line of that code. What's going on? I'm not sure what I'm doing wrong and Google hasn't helped. TIA
Upvotes: 0
Views: 119
Reputation: 3157
The txtInput
should be an integer.
It's the maximum length of the entry (or 0 for maximum).
See gtk.Entry Class Reference.
Upvotes: 1