click below
click below
Normal Size Small Size show me how
SGD113Module4
GUI development in Python
Question | Answer |
---|---|
An ______ program responds to actions regardless of the order in which they occur | event-driven |
A complex GUI program may require more than one ____ window to be in existence at one time. | root |
A group of ____________ share one special object that reflects which of the check buttons are selected. | radio buttons |
A widget that can generate an event must have the ____ bound with an event handler. | event |
A widget's ______ method defines where an object is placed within its master widget. | grid() |
A(n) ____________________ is a GUI element that accepts and displays multiple lines of text. | text box |
A(n) ____________________ is a GUI element that allows, as a group, the user to select one option from several. | radio button |
A(n) ____________________ is a GUI element that allows the user to select or not select an option. | check button |
A(n) ____________________ is a GUI element that allows, as a group, the user to select one option from several. | radio button |
A(n) ____________________ loop calls the appropriate event handlers when events occur. | event |
GUI programs are traditionally _____ driven. | event |
_______ only allow one choice to be selected at one time while check buttons allow any combination of choices to be selected from the group. | radio buttons |
The foundation of a GUI program is its _____ window. | root |
The grid layout manager lets you place widgets at specific locations by treating the ______ as a grid. | frame |
To create a root window, you instantiate an object of what class? | Tk |
Usually, what do you assign to a widget's command option? | method |
What Entry widget method places text into the widget? | insert() |
What Text widget method returns the text in the widget? | get() |
What Text widget method removes text from the widget? | delete |
What Tkinter class is good for displaying multiple lines of text in a GUI? | text |
Each GUI element is connected to its ______ | master |
A ______ variable is a special kind of variable that can be only true or false | boolean |
What is the method that begins a GUI program's event loop? | mainloop() |
What kind of object does a check button need associated with it to reflect the check button's status? | BooleanVar |
What kind of object does a group of radio buttons need associated with it to reflect which of the radio buttons is selected? | StringVar |
What method can you use to modify a widget's options? | configure() |
What method sets the size of a root window? | geometry |
You must pass a _________ to the constructor of a new widget object? | master |
What widget object grid() parameter would you pass a value so that the widget will span more than one column? | columnspan |
What widget object grid() parameter would you pass a value to set the position of the widget within its defined cell(s)? | sticky |
What widget option do you set to bind the activation of the widget with an event handler? | command |
You can have only one root window in a ______ program | Tkinter |
When you write an event-driven program, you bind events with _________ | event handlers |
A _____ can hold other widgets | frame |
A _______ widget is not interactive | label |
You might choose not to suppress the __________ that a GUI program generates because this can be used to display any error messages that the GUI program produces. | console window |
What kind of object does a check button need associated with it to reflect the check button's status? | boolean variable |
What kind of object does a group of radio buttons need associated with it to reflect which of the radio buttons is selected? | stringVar |
What method can you use to modify a widget's options? | configure() |