But TVN is still not happy

The sounds work great, the GUI looks fantastic... but where are my results? I can't find them!

The results appeared in the Python Shell, not in the GUI, so the host missed seeing them. When you point this out to him, he's less than impressed and makes it clear that he expects the results to appear in the GUI.

You need some way to display messages in the GUI.

The results are v-ight there in the Python Shell- But this is NOT what the host wants-

The interface elements that you add to a GUI are known as widgets. You've met one already: the button. There are lots of others. Look at the names of some other widgets below and see if you can match them with the correct description. We've already done the first one for you.

A widget that provides a way for large and small amounts of text to be entered

Label

A separate window that pops up to request additional information from the user

Text box

A widget that displays a string message in a window

Menu

The combination of a drop-down list and a text box

Combo box

, A widget that allows you to select one item from a large list

Dialog box A list of command options that is attached to the top of a window lA/vrte yo«*" Which widget do you think you need to use in your program? ansyjev Kev-e-^^

Drop down list

Label

Text box

Menu

Combo box

Dialog box

The interface elements that you add to a GUI are known as widgets. You've met one already: the button. There are lots of others. You were to look at the names of some other widgets below and see if you could match them with the correct description.

A widget that provides a way for large and small amounts of text to be entered

Text box

Combo box

Dialog box

A widget that provides a way for large and small amounts of text to be entered

A separate window that pops up to request additional information from the user

A widget that displays a string message in a window

The combination of a drop-down list and a text box

A widget that allows you to select one item from a large list

A separate window that pops up to request additional information from the user

A widget that displays a string message in a window

The combination of a drop-down list and a text box

A widget that allows you to select one item from a large list

A list of command options that is attached to the top of a window

You were asked to identify which widget you would use in your program.

Use the "Label" widget-

You need to add a label to your GU| in ^ order to display the results-

Was this article helpful?

0 0

Post a comment