User:4crickj/PyGTK For GUI Programming/Input Widgets

Obviously, one of the most important ways you will want to collect input is from a field which accepts a single line of text, and we have already covered basic usage of the gtk.Entry field in earlier chapters. The GTK+ toolkit, however, has many more widgets for receiving input, such as check boxes, drop down boxes, radio lists, large multi-line text boxes, toggle buttons and date/time choosers - just to name a few.

This chapter takes you through the basics of the most common input widgets, how to configure them to suit your application, and how to retrieve data from them. We will be using the following example programme as a reference point - don't be frightened if there is anything in it which you don't understand, things will be explained in due course. Copy the following source code and save it as a python file:

...