the

Cerca

Heus ací els resultats de la cerca.

Python Professional Course Series: GUI Programming
163 Resultats, Darrera modificació:
of acronyms which plays a very important role in the IT industry. Okay, that’s enough jokes about TLA’s for one course, all the more that GUI is present nearly everywhere. Look ... ) use it to display a GUI and to communicate with the user. They communicate bidirectionally. GUI stan... hical User Interface. In this three-word acronym, the User seems to be the most obvious part. The word
1.2 Let TkInter speak!
162 Resultats, Darrera modificació:
t of view TkInter is a package named **tkinter**. The package contains a bunch of functions, constants,... cts, and modules used to build GUI applications. The GUI application itself consists of four essential elements: * **importing** the needed **tkinter** components; * **creating** a... dow; * adding a set of necessary **widgets** to the window; * **launching** the event controller.
1.3 Settling widgets in the window's interior
139 Resultats, Darrera modificació:
= 1.3 Settling widgets in the window's interior == Settling widgets A familiarity with the ''Button'' widget allows us to show you some ways of putting the widgets (not only the buttons) inside windows. There are more of them than just ''place()'', which you
1.6 Events and how to handle them
134 Resultats, Darrera modificació:
== Event handling As you already know, events are the fuel which propel the application’s movements. All events come **to the event manager**, which is responsible for dispatching them to all the application components. This also means that some
2.3 A small lexicon of widgets - Part 3
115 Resultats, Darrera modificació:
two remaining widgets we want to tell you about – the first one is just a widget, while the second is, in fact, a **set of cooperating widgets**. The ''Entry'' widget not only presents a line of text, but is also able to **edit** the text according to the user’s actions. Using an ''
2.4 Shaping the main window and conversing with the user
95 Resultats, Darrera modificació:
= 2.4 Shaping the main window and conversing with the user The main window is a very specific construct, as its fate is shared among **two** masters: **you*... ating system**. This means than you cannot manage the window like any other widget, as the OS must be *
1.5 A simple GUI application
92 Resultats, Darrera modificació:
UI application. Does that sound weird? Maybe, but the application, when ready, will make you more accus... *conventions**. Our fabulous goal will look like the vision presented below: {{ :info:cursos:pue:pytho... a window and launch an event controller – look at the code in the editor to see how to do it. <code python> import tkinter as tk window = tk.Tk() window.m
1.8 Interacting with widget methods
88 Resultats, Darrera modificació:
ch seem to be very specific. We can even say that the sense of their existence is very closely bound to the unique features of **event programming**. The methods are named (assuming that ''Widget'' is an exist... ''after()'' – this method expects two arguments: the first is a **time interval specification** (expre
1.7 Visiting widgets’ properties
87 Resultats, Darrera modificació:
y know, every widget has a set of properties, and the widget’s user is able to **change** them by modifying the widget’s **appearance** and **behavior**. We’ll s... manipulate properties and present a basic set of the most usable widget properties. A widget's proper... an object, you can access its properties by using the dot notation. You have to use one of two possible
2.5 Working with the Canvas
78 Resultats, Darrera modificació:
= 2.5 Working with the Canvas == Canvas Our last meeting is devoted to the ''Canvas'' – a widget that behaves like a... **can... lease treat this story as a basic introduction to the ''Canvas'' facilities. It can do much more for yo... et’s start with a simple example. Take a look at the code. <code python> import tkinter as tk windo
1.9 Looking at variables
51 Resultats, Darrera modificació:
it’s able to store values which are accessible to the outside world) but there is something more – any change of the variable’s state can be **observed** by a number of external agents. For example, the ''Entry'' widget can use its own observable variable to inform other objects that the contents of the input field have been changed. F
1.4 Coloring your widgets
49 Resultats, Darrera modificació:
and we will tell you about them while discussing the widgets themselves. Currently, the most important thing is getting to know how the colors are described in ''tkinter'', in other words, what means can you use to order the button to be red or blue. There are at least thr
2.1 A small lexicon of widgets - Part 1
43 Resultats, Darrera modificació:
re ready to present a systematized set of some of the ''tkinter'' widgets. We aren’t able to describe a... iar with ''tkinter'' standards and habits, and at the same time will encourage you to carry out your ow... experiments and tests. You already know some of the widgets. In these cases, we’ll limit our descriptions to the necessary minimum. Each ''tkinter'' widget is cr
2.2 A small lexicon of widgets - Part 2
41 Resultats, Darrera modificació:
icon of widgets - Part 2 == Non-clickable widgets The next four widgets fall into the **non-clickable** category. They’re designed to present **textual** in... can use ''bind()'' to simulate similar behavior. The ''Label'' widget displays some lines of text inside the window: <code python> label = Label(master, optio