The GtkEntry class is the class for instantiating text entry widgets.
The class heirarchy
Object +---GtkWidget +---GtkEntry |
The methods for the GtkEntry class are documented below.
This method creates and initializes the widget.
This is a example of how to create a text entry widget.
myentry = .GtkEntry~new() |
None.
The new GtkEntry object.
This method retrieves the maximum text length from the widget.
This is a example of how to retrieve the maximum text length.
len = myentry~maxlength() |
None.
This method sets the maximum text length for the widget.
This is a example of how to set the maximum text length.
len = 10 myentry~maxlength = len |
None.
This method retrieves the text from the widget.
This is a example of how to retrieve the text.
text = myentry~text() |
None.
This method sets the text for the widget.
This is a example of how to set the text.
text = 'David' myentry~text = text |
None.
This method sets the maximum visible width for the widget.
This is a example of how to set the maximum visible width.
width = 10 myentry~widthchars = width |
None.