Cerca

Heus ací els resultats de la cerca.

Python Professional Course Series: GUI Programming
12 Resultats, Darrera modificació:
e, not saying a word about movies or animations. No photographs, no selfies, no avatars, no animated banners and finally, no colors. How do you like it? Take a look at the two cla
1.2 Let TkInter speak!
7 Resultats, Darrera modificació:
port tkinter as tk</code> Okay, we know there’s no accounting for taste, but it’s definitely worth a... *Tk()**. In its most commonly used form, it needs no arguments. The object returned by the method is *... sing the application to quit. Currently, there is no other way than to make use of some of the OS's de... k you? Of course we can. Does it change anything? No, it doesn't. Of course, the view of the button ch
2.4 Shaping the main window and conversing with the user
6 Resultats, Darrera modificació:
**title**. The title is defaultly set to ''Tk'', no matter what your application is named, or even if... the user or to ask any simple question (e.g., yes/no), you don’t need to create your own means – you c... rgument with identifiers like CANCEL, IGNORE, OK, NO, RETRY, and YES; * **icon** – sets the non-de... o show you is ''askyesno()'', designed to get yes/no user responses. The function creates a dialog whi
1.6 Events and how to handle them
5 Resultats, Darrera modificació:
the switch if OFF, clicking the second button has no effect. Moreover, the second button’s title chang... = not switch def rhyme(dummy): global word_no, words word_no += 1 label.config(text=words[word_no % len(words)]) switch = True words = ["Old", "McDonald", "
1.8 Interacting with widget methods
2 Resultats, Darrera modificació:
the ''is_white'' variable. Easy. Note: there is no **explicit invocation** of the function inside th... he **currently focused widget**, or ''None'' when no widget owns the focus (note: you can invoke the m
2.1 A small lexicon of widgets - Part 1
2 Resultats, Darrera modificació:
or not; thus, it is a handy tool to represent yes/no user choices. Let's start with its properties: ... utton''’s methods are shown here. Note: there is no ''toggle()'' method as a single ''Radiobutton'' p
2.3 A small lexicon of widgets - Part 3
2 Resultats, Darrera modificació:
with a string naming the hot-key (note: this has no other effect than just displaying the right-aligned string inside the item – **no callback is set at the moment**) * make a **glo
1.3 Settling widgets in the window's interior
1 Resultats, Darrera modificació:
ue:python-pcpp1:m3:pasted:20231223-104640.png }} No? Are you surprised? You have the right to be. Pac
1.4 Coloring your widgets
1 Resultats, Darrera modificació:
de that list so short. To tell the truth, we have no idea how to name each of these 16 million colors
1.5 A simple GUI application
1 Resultats, Darrera modificació:
ay, "can't we use a regular variable instead?" **No, we can't.** Objects of the ''IntVar'' class are
2.2 A small lexicon of widgets - Part 2
1 Resultats, Darrera modificació:
asted:20231228-111139.png}} The Label widget has no usable methods – sorry! The sample in the editor