Cerca

Heus ací els resultats de la cerca.

Python Professional Course Series: GUI Programming
203 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 ... even washing machine or heating controller – all these things have a screen, most of them colored and many (more and more every year) use it to display a G
1.2 Let TkInter speak!
187 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
163 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
151 Resultats, Darrera modificació:
= 1.6 Events and how to handle them == 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 dispatchin
2.3 A small lexicon of widgets - Part 3
126 Resultats, Darrera modificació:
= 2.3 A small lexicon of widgets - Part 3 There are 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
2.4 Shaping the main window and conversing with the user
110 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
108 Resultats, Darrera modificació:
atch Now we're going to build a very simple and rather useless GUI 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 py
1.7 Visiting widgets’ properties
101 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 show you how to manipulate properties and present a basic set of the most usable widget properties. A widget's proper
1.8 Interacting with widget methods
98 Resultats, Darrera modificació:
ods Widgets have **methods** – you’ve met some of them already. Now we’re going to show you a few more of them, and we’ll start with two which 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 m
2.5 Working with the Canvas
84 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... t you can cover with drawings, text, frames, and other widgets. Please treat this story as a basic introduction to the ''Canvas'' facilities. It can do much more for yo
1.4 Coloring your widgets
69 Resultats, Darrera modificació:
Most widgets have dedicated properties to handle their colors 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 describe
1.9 Looking at variables
60 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 varia
2.1 A small lexicon of widgets - Part 1
52 Resultats, Darrera modificació:
re ready to present a systematized set of some of the ''tkinter'' widgets. We aren’t able to describe all of them, however – it would bloat our course to an unman... 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 descript
2.2 A small lexicon of widgets - Part 2
50 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** information and don’t have a ''com... can use ''bind()'' to simulate similar behavior. The ''Label'' widget displays some lines of text insi