Cerca

Heus ací els resultats de la cerca.

1.6 Events and how to handle them
31 Resultats, Darrera modificació:
tion we’ll use for our experiments is named ''showinfo()'', it comes from the ''messagebox'' module, and... hich are strings: <code ; output> messagebox.showinfo(title, info) </code> * the **first** string will be used by the function to **title the message box*... can use the ''\n'' digraph to visually break the info into separate lines. We’ll ask the ''showinfo()'
2.3 A small lexicon of widgets - Part 3
19 Resultats, Darrera modificació:
hen you are going to ask the user for any textual information: name, password, email, etc. The widget im... 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... messagebox def about_app(): messagebox.showinfo("App", "The application\nthat does nothing") wi
Python Professional Course Series: GUI Programming
10 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.7 Visiting widgets’ properties
10 Resultats, Darrera modificació:
string, although it specifies strictly numerical information; * the three-element tuple uses the thir... ou do! The property responsible for storing font information is – obviously – named ''font''. We’ve us... ur favorite ones. Our fonts look like this: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231228-035000... of text if the widget is able to present textual information). The list of widget sizes is gathered in
1.5 A simple GUI application
9 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... -clickable widget able to **present short textual information**, passed to the widget's constructor usin... window. Let's welcome Label into our window: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110856
2.1 A small lexicon of widgets - Part 1
9 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.3 Settling widgets in the window's interior
8 Resultats, Darrera modificació:
ys aware of the window it belongs to (it gets the information from the constructor's very first argument... 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
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.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
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.2 A small lexicon of widgets - Part 2
4 Resultats, Darrera modificació:
category. They’re designed to present **textual** information and don’t have a ''command'' property, alt... 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
1.9 Looking at variables
2 Resultats, Darrera modificació:
y'' widget can use its own observable variable to inform other objects that the contents of the input fi... ’s ''tkinter''’s business) * ''act'' – a string informing us what happened to the variable or, in othe
2.4 Shaping the main window and conversing with the user
2 Resultats, Darrera modificació:
icon for the dialog: possible values are: ERROR, INFO, QUESTION, and WARNING. The first of the functio... ) </code> If you need to display some **error** information, you can use the ''showerror()'' function.