Cerca

Heus ací els resultats de la cerca.

1.6 Events and how to handle them
18 Resultats, Darrera modificació:
ings: <code ; output> messagebox.showinfo(title, info) </code> * the **first** string will be used b... can use the ''\n'' digraph to visually break the info into separate lines. We’ll ask the ''showinfo()'... sagebox def clicked(): messagebox.showinfo("info", "some\ninfo") window = tkinter.Tk() button_1 = tkinter.Button(window, text="Show info", command=clicked) button_1.pack() button_2 = tki
Python Professional Course Series: GUI Programming
9 Resultats, Darrera modificació:
als of the time – in a strictly textual way. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231219-025303... pplication can be visible on screen at once. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231219-075011... . It's one of the typical window decorations. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-020402... he location of these buttons is OS-dependent. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-020429
1.5 A simple GUI application
8 Resultats, Darrera modificació:
al will look like the vision presented below: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110659... ode> Our window looks like this one for now: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110745... window. Let's welcome Label into our window: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110856... This is how the Frame manifests its presence: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-111112
2.5 Working with the Canvas
8 Resultats, Darrera modificació:
f the code responsible for all these actions? {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-121855... nvas. The most usable of them are as follows: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-121919... eresting create_line() options are as follows: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-122155... n you predict what the result will look like? {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-122235
1.3 Settling widgets in the window's interior
7 Resultats, Darrera modificació:
dow. Yes, this is what we expected, isn't it? {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-035604... 50) window.mainloop() </code> Yes, we can! {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-035713... puzzle? Did you imagine the window that way? {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-103426... ink it over carefully. Here's the solution. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-103658
1.7 Visiting widgets’ properties
7 Resultats, Darrera modificació:
ur favorite ones. Our fonts look like this: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231228-035000... ist of widget sizes is gathered in the table: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-035038... () </code> This is what we see on our screen: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-035407... . There are more options than you may suspect: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-035448
1.4 Coloring your widgets
6 Resultats, Darrera modificació:
ork? Let's check. Yes, it definitely does: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-105209... ow.mainloop() </code> This is what we get: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-105841... ce of the colors), we get white as a result. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110037... of the primary colors – red, green or blue. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110114
2.1 A small lexicon of widgets - Part 1
6 Resultats, Darrera modificació:
f the widget, along with its specific methods. {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-105125.png}} {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-105137... er choices. Let's start with its properties: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-105244.png}} And now some of its methods: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-105314
1.2 Let TkInter speak!
5 Resultats, Darrera modificació:
de now. Did you get the same window as ours? {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-033033... wo-dimensional coordinates system looks like: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-033739... while the screen coordinates look as follows: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-033805... loop() </code> Hi, Button! Nice to see you! {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-033934
2.3 A small lexicon of widgets - Part 3
4 Resultats, Darrera modificació:
ext. Here are some of ''Entry''’s properties: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-112558.png}} And now, some of ''Entry''’s methods: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-112626... her some of the menu’s properties and methods: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-114900.png}} {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-114913
2.2 A small lexicon of widgets - Part 2
3 Resultats, Darrera modificació:
at they are mutually exclusive. Here you are: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-111139... . The ''Frame'' has one interesting property: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-111827... e ''LabelFrame'' properties are gathered here: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-112139
2.4 Shaping the main window and conversing with the user
1 Resultats, Darrera modificació:
icon for the dialog: possible values are: ERROR, INFO, QUESTION, and WARNING. The first of the functio