Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- Python Professional Course Series: GUI Programming
- = Python Professional Course Series: GUI Programming == What is GUI? GUI is an acronym. Moreover, it’s... t role in the IT industry. Okay, that’s enough jokes about TLA’s for one course, all the more that GUI... round you – you’ll see a couple of different devices equipped with screens: phone, tablet, computer, T... ser to command a device and to receive its responses. But what does it mean that the interface is gra
- 1.2 Let TkInter speak!
- ge contains a bunch of functions, constants, classes, objects, and modules used to build GUI applications. The GUI application itself consists of four es... ss controllable) way of importing tkinter facilities is to import the package as a whole: <code pytho... de> Note: it won’t allow you to access some modules built-in within the package and you will still ha
- 2.4 Shaping the main window and conversing with the user
- e()''. Our sample code shows a window which changes its title each time you click over it, until you do it ten times, after which the title remains 0. <code python> ... The key to success is line #5 – it directly invokes one of the ''tkinter'' internal, low-level mechan... in the same directory where the application resides; * **use** a ''PhotoImage'' class constructor t
- 1.7 Visiting widgets’ properties
- = 1.7 Visiting widgets’ properties == Widget properties As you already know, every widget has a set of properties, and the widget’s user is able to **change** them... avior**. We’ll show you how to manipulate properties and present a basic set of the most usable widget
- 1.3 Settling widgets in the window's interior
- rs**. ''Place'' is the most detailed one. It forces you to **precisely declare a widget's location**,... on't, however, protect you from some common mistakes causing the widgets to overlap each other or to p... ally and worry about possible conflicts and failures, you may entrust the whole problem to ''tkinter''... in between the other two geometry managers. It gives you a chance to express your **general wishes** a
- 2.3 A small lexicon of widgets - Part 3
- , etc.. We’ll show you only the basic possibilities of the widget, as it’s full equipment is extremel... ne of text. Here are some of ''Entry''’s properties: {{:info:cursos:pue:python-pcpp1:m3:pasted:202312... ous** state (using the last_s variable) and restores the field to this state if its current contents a... tions**, often referred to as **items** or **entries**; * these options can have **hot-keys** (keybo
- 1.4 Coloring your widgets
- **colored**. 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 t... here – we've just made use of regular English names of colors and packed them inside strings. Does it work? Let's check. Yes, it definitely does: {{
- 1.6 Events and how to handle them
- vents may launch some of your callbacks, which makes you responsible for preparing the proper reaction... s time to show you some details of the events’ lives and anatomy. We’ll also show you how the events a... se the regular ''print()'' function to show messages and present a debug trace. The output will appear... cation window. It’s okay if used in the early stages of development, but it’s very inelegant if you wa
- 2.5 Working with the Canvas
- is devoted to the ''Canvas'' – a widget that behaves like a... **canvas**. It’s a flat, rectangular su... rface that 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 you – for example, it ca... to many events – we hope you’ll explore these issues on your own while we show you how to start your n
- 1.5 A simple GUI application
- very simple and rather useless GUI application. Does that sound weird? Maybe, but the application, whe... ted:20231223-110856.png }} Note: ''pack()'' resizes the window to a size large enough to fit all the ... ame'' plays a less important role – it just occupies a rectangle and fills it with its own color. We e... This object is designed to store **integer** values. "Okay," you may say, "can't we use a regular var
- 2.1 A small lexicon of widgets - Part 1
- You already know some of the widgets. In these cases, we’ll limit our descriptions to the necessary mi... master widget is just the main window in most cases, but can be also a ''Frame'' or a ''LabelFrame'' ... ntioned before, all widgets fall into two categories: **clickable** and **non-clickable**. We’ll start... e any special attention, as we’ve used it many times before. You already know what it looks like and h
- 1.8 Interacting with widget methods
- istence is very closely bound to the unique features of **event programming**. The methods are named ... nction**; successful invocation of the method causes the event manager to change its plans; when the number of milliseconds elapses, the manager **will invoke the function** (only o... **id** of the planned invocation; is it usable? Yes, it is, e.g., when you are going to delete the pr
- 1.9 Looking at variables
- = 1.9 Looking at variables == Variables To implement some of its functions, Tkinter uses a very special kind of variable called an **observab... a regular variable (i.e., it’s able to store values which are accessible to the outside world) but th
- 2.2 A small lexicon of widgets - Part 2
- behavior. The ''Label'' widget displays some lines of text inside the window: <code python> label = ... The ''Label'' widget contains two usable properties, but you need to remember that they are mutually ... '' (among other things, it has the **same properties**) but is able to **format** the presented text b... ssage'' widget reacts to the ''tx'' variable updates. The ''Frame'' widget is, in fact, a ''container