Cerca

Heus ací els resultats de la cerca.

1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
30 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 @info:cursos:pue:python-pcpp1:m3
18 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... messagebox def about_app(): messagebox.showinfo("App", "The application\nthat does nothing") wi... messagebox def about_app(): messagebox.showinfo("App", "The application\nthat does nothing") wi
2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP @info:cursos:pue:python-pcpp1:m1
17 Resultats, Darrera modificació:
t we'll discuss this issue more a bit later. {{ :info:cursos:pue:python-pcpp1:pasted:20231013-035718.pn... ngs in Python) Can you see the diamond there? {{ :info:cursos:pue:python-pcpp1:pasted:20231013-040047.pn... h classes B and C. If you want to call the method info(), which part of the code would be executed then?... output of the code? <code python>class A: def info(self): print('Class A') class B(A):
4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
17 Resultats, Darrera modificació:
* CRITICAL: 50 * ERROR: 40 * WARNING: 30 * INFO: 20 * DEBUG: 10 * NOTSET: 0 Each level has a... e') logger.warning('Your WARNING message') logger.info('Your INFO message') logger.debug('Your DEBUG message') </code> Result: <code> CRITICAL:root:Your CRI... g. You’re probably wondering why messages with ''INFO'' and ''DEBUG'' levels are not displayed. This is
2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
13 Resultats, Darrera modificació:
s the hypotenuse of a right-angled triangle. {{ :info:cursos:pue:python-pcpp1:m2:pasted:20231105-125607... nd ''bananas'' from the //fruit.py// module. {{ :info:cursos:pue:python-pcpp1:m2:pasted:20231105-125726... ort the ''numbers'' list in ascending order. {{ :info:cursos:pue:python-pcpp1:m2:pasted:20231105-125948... mple: Perform five additions of two numbers. {{ :info:cursos:pue:python-pcpp1:m2:pasted:20231105-130120
2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
9 Resultats, Darrera modificació:
ersal map, unrelated to any special data type. {{:info:cursos:pue:python-pcpp1:pasted:20231013-031457.png}} {{:info:cursos:pue:python-pcpp1:pasted:20231013-031512.png}} {{:info:cursos:pue:python-pcpp1:pasted:20231013-031526.png}} {{:info:cursos:pue:python-pcpp1:pasted:20231013-031545.pn
Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
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
2.1 A small lexicon of widgets - Part 1 @info:cursos:pue:python-pcpp1:m3
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.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
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 @info:cursos:pue:python-pcpp1:m3
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 @info:cursos:pue:python-pcpp1:m3
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 @info:cursos:pue:python-pcpp1:m3
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.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
7 Resultats, Darrera modificació:
almost the same in all the above platforms. {{ :info:cursos:pue:python-pcpp1:m4:pasted:20240118-101226... elp screen similar to the one presented here: {{ :info:cursos:pue:python-pcpp1:m4:pasted:20240118-101242... d the JSON file cars.json from here: Download {{ :info:cursos:pue:python-pcpp1:m4:e845c414d155078681778a... t correctly, you'll see the following screen: {{ :info:cursos:pue:python-pcpp1:m4:pasted:20240119-002551
1.4 Coloring your widgets @info:cursos:pue:python-pcpp1:m3
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
4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
5 Resultats, Darrera modificació:
thon> a_list = [ 1, 'New York', 100] </code> {{ :info:cursos:pue:python-pcpp1:pasted:20231026-143815.pn... se </code> This could be depicted as follows: {{ :info:cursos:pue:python-pcpp1:pasted:20231101-150854.pn... references to the already existing objects. {{ :info:cursos:pue:python-pcpp1:pasted:20231101-151357.pn... nction, delivered by the python 'copy' module {{ :info:cursos:pue:python-pcpp1:pasted:20231101-151525.pn
1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
5 Resultats, Darrera modificació:
1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
4 Resultats, Darrera modificació:
2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
1 Resultats, Darrera modificació:
5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
1 Resultats, Darrera modificació:
1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
1 Resultats, Darrera modificació:
1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
1 Resultats, Darrera modificació:
1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
1 Resultats, Darrera modificació: