Cerca

Heus ací els resultats de la cerca.

1.2 Let TkInter speak!
10 Resultats, Darrera modificació:
speak! == Importing TkInter As you already know, from Python's point of view TkInter is a package named... ilities separately – just like this: <code python>from tkinter import Button</code> If you're an enthus... using the star as a component name: <code python>from tkinter import *</code> It's handy when you writ... it can bring some cumbersome troubles when names from the package's namespace cross with some of your p
1.6 Events and how to handle them
10 Resultats, Darrera modificació:
our experiments is named ''showinfo()'', it comes from the ''messagebox'' module, and it needs **two arg... showinfo()'' works: <code python> import tkinter from tkinter import messagebox def clicked(): me... prise to you. <code python> import tkinter as tk from tkinter import messagebox def click(): tk.m... nswered immediately: * **Q**: What is an event from the event controller’s point of view? * **A**:
2.3 A small lexicon of widgets - Part 3
10 Resultats, Darrera modificació:
d invocation) <code python> import tkinter as tk from tkinter import messagebox def about_app(): ... as a hotkey) <code python> import tkinter as tk from tkinter import messagebox def about_app(): ... ve this goal. <code python> import tkinter as tk from tkinter import messagebox def about_app(): ... y simple way. <code python> import tkinter as tk from tkinter import messagebox def about_app():
2.4 Shaping the main window and conversing with the user
9 Resultats, Darrera modificació:
d called ''maxsize()'', which protects the window from becoming too large. Check the code in the editor... is mechanism. <code python> import tkinter as tk from tkinter import messagebox def really(): if ... usually, it’s focused on the button located first from the left; this can be changed by setting the keyw... verlook them. <code python> import tkinter as tk from tkinter import messagebox def question(): a
1.3 Settling widgets in the window's interior
6 Resultats, Darrera modificació:
*, pixel by pixel. It won't, however, protect you from some common mistakes causing the widgets to overl... ''place()'' method. Note: the method is invoked **from within the widget's object**, not the window, as ... the window it belongs to (it gets the information from the constructor's very first argument). The most... column number c; note: the columns' numbers start from zero, and if you omit this argument, the manager
1.8 Interacting with widget methods
6 Resultats, Darrera modificació:
going to delete the previously planned invocation from the manager’s calendar, which is done with a meth... )'', which changes the f frame’s background color from white to black and back depending on the state of... ctive. It removes the widget completely, not only from your sight, but also from the event manager’s memory, as the widget’s object is deleted and becomes ina
Python Professional Course Series: GUI Programming
4 Resultats, Darrera modificació:
touch screens. They had keyboards (very different from contemporary keyboards installed inside laptops) ... y pressing a set of allowed keys. Simple? Simple. From our present-day developer's perspective, too simple. From a user's point of view, difficult and inconvenien... tinction, as the window hides some of its secrets from the user. We can even say that each window compri
2.1 A small lexicon of widgets - Part 1
3 Resultats, Darrera modificació:
how'' button. <code python> import tkinter as tk from tkinter import messagebox def count(): glob... lyze the code. <code python> import tkinter as tk from tkinter import messagebox def count(): glob... -110745.png}} <code python> import tkinter as tk from tkinter import messagebox def show(): messa
1.4 Coloring your widgets
2 Resultats, Darrera modificació:
> what gives **256 different saturation levels**, from color's absence (saturation 0) to full color's pr... gits. Each p**air of the digits** forms the value from range **0x00..0xFF** (0..255) what determines the
1.5 A simple GUI application
2 Resultats, Darrera modificació:
ple GUI application == Building a GUI application from scratch Now we're going to build a very simple an... **group widgets** and to separate them (visually) from other window components. Our ''Frame'' plays a le
1.9 Looking at variables
2 Resultats, Darrera modificació:
e contents of the input field have been changed. From a technical point of view, such a variable is an ... * ''obsid'' – the observer’s identifier obtained from the previous ''trace()'' invocation. We’ve prepa
2.5 Working with the Canvas
2 Resultats, Darrera modificació:
* import the ''Image'' and ''ImageTk'' classes from the **PIL** (Python Image Library) module; * bu... and use its ''open()'' method to fetch the bitmap from the file (the argument should specify the file’s
1.7 Visiting widgets’ properties
1 Resultats, Darrera modificació:
''Frame'') can be made to use a font **different from the default**. Tkinter represents fonts as **tup