Cerca

Heus ací els resultats de la cerca.

2.3 A small lexicon of widgets - Part 3
22 Resultats, Darrera modificació:
in fact, a **set of cooperating widgets**. The ''Entry'' widget not only presents a line of text, but... text according to the user’s actions. Using an ''Entry'' is necessary when you are going to ask the u... extremely complex. Fortunately, we don’t need its entire flexibility when we just want to enter and validate a line of text. Here are some of ''Entry''’s
Python Professional Course Series: GUI Programming
11 Resultats, Darrera modificació:
y important role in the IT industry. Okay, that’s enough jokes about TLA’s for one course, all the mor... try standards. The first of them is the [[https://en.wikipedia.org/wiki/IBM_3270|IBM 3270]], and the s... is the Digital Equipment Corporation’s [[https://en.wikipedia.org/wiki/VT100|VT100]]. Now it’s time ... ndow (or windows) visible on the screen. In some environments (e.g., on mobile devices) the window ca
1.5 A simple GUI application
10 Resultats, Darrera modificació:
te: ''pack()'' resizes the window to a size large enough to fit all the packed widgets. This is its de... ernally an extremely complicated, widget, named ''Entry''. Look at the code in the editor. <code pyth... eck Button", variable=switch) checkbutton.pack() entry = tk.Entry(window, width=30) entry.pack() window.mainloop() </code> Entry is designed to let th
2.1 A small lexicon of widgets - Part 1
6 Resultats, Darrera modificació:
ize. We’re convinced that our collection is large enough to make you familiar with ''tkinter'' standards and habits, and at the same time will encourage you to carry out your own experiments and ... ow it works, so we’re going to limit ourselves to enumerating the most usable properties of the widget... ndow = tk.Tk() button_1 = tk.Button(window, text="Enabled", bg="red") button_1.bind("<Enter>", mouseov
1.2 Let TkInter speak!
4 Resultats, Darrera modificació:
th accounting for code readability. The choice is entirely up to you. If you like to have full contro... n>from tkinter import Button</code> If you're an enthusiast of living life on the edge, you can simpl... – there is nothing more you can do in your code. Entering the controller's main loop **deprives you**... don't want the controller to be confused. It may end badly. Therefore, the simplest handler may look
1.4 Coloring your widgets
4 Resultats, Darrera modificació:
everywhere. Let's check if tkinter understands **English** – look at the code in the editor, our test... resistance here – we've just made use of regular English names of colors and packed them inside strin... python-pcpp1:m3:pasted:20231223-105209.png }} We encourage to you make some clicks on the **button** ... he test's result saying that any of commonly used English color name can be used with ''tkinter''. Don
1.6 Events and how to handle them
4 Resultats, Darrera modificació:
won’t stretch if you’re going to display a whole encyclopedia volume); note: you can use the ''\n'' d... clickable widgets. The bind remains active to the end of the application’s work, but you can also manu... any moment (and bind it again when you wish). We encourage you to play with the code – test the behav... lick) frame.pack() window.mainloop() </code> We encourage you again to carry out some experiments wi
1.8 Interacting with widget methods
4 Resultats, Darrera modificació:
he **passage of time** when using an event-driven environment.\\Why? Because you can’t just invoke the... The event managers do, because: * we initially encourage it to make the invocation before the frame... s packed into the main window; * we continue to encourage it every time the ''blink()'' function is ... ren and its children’s children and … okay, let’s end the story here . It’s infinite – telling it will
1.9 Looking at variables
2 Resultats, Darrera modificació:
y a number of external agents. For example, the ''Entry'' widget can use its own observable variable t... riable’s kind. Each observable variable can be **enriched** with a number of **observers**. An observ
1.3 Settling widgets in the window's interior
1 Resultats, Darrera modificació:
ry about possible conflicts and failures, you may entrust the whole problem to ''tkinter''. It'll try
1.7 Visiting widgets’ properties
1 Resultats, Darrera modificació:
eveals itself as an **arrow**. Sometimes, when it enters a specific area, its shape can **change** (e.
2.2 A small lexicon of widgets - Part 2
1 Resultats, Darrera modificació:
there? The ''LabelFrame'' widget is a ''Frame'' enriched with a **visible border** and a **title** (
2.4 Shaping the main window and conversing with the user
1 Resultats, Darrera modificació:
manager to run an event named ''<Delete>'', which enables the other widgets to react. Unfortunately, t
2.5 Working with the Canvas
1 Resultats, Darrera modificació:
fied coordinates (xi,yi), starting at (x0,y0) and ending at (xn,yn) – as you can see, each pair of pos