Cerca
Heus ací els resultats de la cerca.
Noms de pàgina coincidents:
- 1.1 Classes, Instances, Attributes, Methods — introduction
- 1.2 Working with class and instance data – instance variables
- 2.1 Python core syntax
- 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP
- 2.3 Extended function argument syntax
- 2.4 Decorators
- 2.5 Different faces of Python methods
- 2.6 Abstract classes
- 2.7 Encapsulation
- 2.8 Composition vs Inheritance - two ways to the same destination
- 2.9 Inheriting properties from built-in classes
- 3.1 Advanced techniques of creating and serving exceptions
- 4.1 Shallow and deep copy operations
- 4.2 Serialization of Python objects using the pickle module
- 4.3 Making Python objects persistent using the shelve module
- 5.1 Metaprogramming
- 1.1 What is PEP?
- 2.1 PEP 20 – The Zen of Python
- 3.1 PEP 8 – Introduction
- 4.1 PEP 257 – Docstring Conventions
- Python Professional Course Series: GUI Programming
- 1.2 Let TkInter speak!
- 1.3 Settling widgets in the window's interior
- 1.4 Coloring your widgets
- 1.5 A simple GUI application
- 1.6 Events and how to handle them
- 1.7 Visiting widgets’ properties
- 1.8 Interacting with widget methods
- 1.9 Looking at variables
- 2.1 A small lexicon of widgets - Part 1
- 2.2 A small lexicon of widgets - Part 2
- 2.3 A small lexicon of widgets - Part 3
- 2.4 Shaping the main window and conversing with the user
- 2.5 Working with the Canvas
- 1.1 Python Professional Course Series: RESTful APIs
- 1.2 How to use sockets in Python
- 1.3 JSON – our new friend
- 1.4 Talking to JSON in Python
- 1.5 What is XML and why do we prefer to use JSON?
- 1.6 Making life easier with the requests module
- 1.7 Four magic letters: CRUD
- 2.1 Python Professional Course Series: Lab & Assessment
- 1.1 SQLite
- 2.1 File processing - XML files
- 3.1 The CSV module in Python
- 4.1 Logging in Python
- 5.1 The configparser module
Resultats de text complet:
- 1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
- 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
- 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
- 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
- * 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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