PyGTK For GUI Programming/Input Widgets

From Wikibooks, open books for an open world
Jump to navigation Jump to search

This chapter covers the basic set of widgets which collect data from the user, including text boxes, radio buttons, tick (or check) boxes and spin buttons. These widgets allow the most common types of data to be collected by your application. You can get your application to pre-populate them with data and retrieve data by calling various methods, and you can place restrictions on what the user can input into the widgets, often removing the need for validation of data in your code.

gtk.Entry for text input[edit | edit source]