Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- Python Professional Course Series: GUI Programming
- 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
- 2.3 A small lexicon of widgets - Part 3
- g") def are_you_sure(): if messagebox.askyesno("", "Are you sure you want to quit the App?"): ... g") def are_you_sure(): if messagebox.askyesno("", "Are you sure you want to quit the App?"): ... g") def are_you_sure(): if messagebox.askyesno("", "Are you sure you want to quit the App?"): ... g") def are_you_sure(): if messagebox.askyesno("", "Are you sure you want to quit the App?"):
- 2.4 Shaping the main window and conversing with the user
- **title**. The title is defaultly set to ''Tk'', no matter what your application is named, or even if... essagebox def really(): if messagebox.askyesno("?", "Wilt thou be gone?"): window.destro... 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
- 1.2 Let TkInter speak!
- 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
- 1.6 Events and how to handle them
- 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
- 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
- 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
- 1.3 Settling widgets in the window's interior
- ue:python-pcpp1:m3:pasted:20231223-104640.png }} No? Are you surprised? You have the right to be. Pac
- 1.4 Coloring your widgets
- 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
- 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
- asted:20231228-111139.png}} The Label widget has no usable methods – sorry! The sample in the editor