Cerca

Heus ací els resultats de la cerca.

2.4 Shaping the main window and conversing with the user
21 Resultats, Darrera modificació:
nounce something to the user or to ask any simple question (e.g., yes/no), you don’t need to create you... for the dialog: possible values are: ERROR, INFO, QUESTION, and WARNING. The first of the functions we... dialog which: * contains an **icon** with a **question** mark in it; * returns ''True'' if the us... kinter as tk from tkinter import messagebox def question(): answer = messagebox.askyesno("?", "To
Python Professional Course Series: GUI Programming
5 Resultats, Darrera modificació:
It's not surprising that the light pen didn't conquer the market. The most important aspect of the case is a question: how do we organize computer–user interactio... e window performs a very specific task (it asks a question and forces the user to reply), it needs two ... es care of this. It's automatic and completely opaque. You don't need to do anything (or almost anythin
1.2 Let TkInter speak!
5 Resultats, Darrera modificació:
s able to create **dialog boxes** intended to ask questions, display messages, and to receive a user's ... sagebox def Click(): replay = messagebox.askquestion("Quit?", "Are you sure?") if replay == '... den inside the callback: * we invoke the ''askquestion()'' function by passing two arguments to it:... user aware of the incoming issue; * the ''askquestion()'' function returns a string which is equal
1.3 Settling widgets in the window's interior
3 Resultats, Darrera modificació:
ry manager is named ''pack()'' as it **packs subsequent widgets** into the window's interior. This mean... default pack's operation tends to deploy all subsequent widgets in one column, one below the other. You... 848.png }} We think that there is one intriguing question that can be asked here and now: do these but
1.8 Interacting with widget methods
3 Resultats, Darrera modificació:
f their existence is very closely bound to the unique features of **event programming**. The methods a... h is as specific as the method itself – it’s a unique **id** of the planned invocation; is it usable? Y... e. Moreover, it isn’t assigned as a callback. The question is – who invokes it? The event managers do,
1.6 Events and how to handle them
2 Resultats, Darrera modificació:
ooks clear, doesn’t it? Of course, there are two questions that should be answered immediately: * *... How are the events identified? * **A**: By **unique names** – each event has its own name and the nam
1.4 Coloring your widgets
1 Resultats, Darrera modificació:
uman can distinguish about 7 million colors, consequently, the model should work well and it really doe
1.5 A simple GUI application
1 Resultats, Darrera modificació:
be equated with an **affirmative answer** to some question) * the **OFF** state when the'' Checkbutto
1.9 Looking at variables
1 Resultats, Darrera modificació:
urs. The function returns a string which is a unique observer **identifier**. Don’t try to interpret i
2.3 A small lexicon of widgets - Part 3
1 Resultats, Darrera modificació:
you’re obliged to ensure that all hotkeys are unique! Now we’ll extend the ''File'' submenu and add a