Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 2.4 Decorators @info:cursos:pue:python-pcpp1:m1
- = 2.4 Decorators A decorator is one of the design patterns that describes the structure of related objects. Python is able to decorate functions, methods, and classes. The decorator's operation is based on wrapping the original fu
- 1.3 Settling widgets in the window's interior @info:cursos:pue:python-pcpp1:m3
- r == Settling widgets A familiarity with the ''Button'' widget allows us to show you some ways of putting the widgets (not only the buttons) inside windows. There are more of them than ju... which you learned about in the previous section. To be precise, there are **three different methods**
- 1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
- = 1.2 How to use sockets in Python == How to fetch a document from a server using Python We are going to write our first program making use of network soc... r this purpose. Here are our goals: * we want to write **a program which reads the address of a WW
- 2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
- nd design. Tim Peters, a long time major contributor to the Python programming language and Python community, wrote this 19-line poem on the Python maili... Python interpreter. Now let’s see the magic. Go to the editor window, type in ''import this'', run the code, and voilà! Can you see what happens? What
- 1.1 SQLite @info:cursos:pue:python-pcpp1:m5
- content. You’ve surely noticed that the data sent to those applications are still available after a fe... ata are all kinds of information that we can send to the application. During registration, you send th... d new posts you send content that will be visible to other users. Sent data should be saved in some pl... ace is a database, which is a set of information stored on a disk in a computer system. Access to the
- 4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
- Python Developer's Guide, which makes an attempt to standardize the high-level structure of docstring... Python code using docstrings. In short, it tries to answer the following two questions: - What sho... module, function, and method definition in order to provide information about the functionality of a ... ive** way. They help programmers (including you) to remember and understand the purpose, operation, a
- 1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
- ess We’ve reached the point in which we are ready to gather all new facts and tools and glue all these pieces into one functional block. You already know how HTTP works, how it’ is mounted on top of the TCP stack and how the HTTP server is able
- 1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
- = 1.6 Events and how to handle them == Event handling As you already know, events are the fuel which p... el the application’s movements. All events come **to the event manager**, which is responsible for dispatching them to all the application components. This also means t... ou responsible for preparing the proper reactions to the user’s actions. Now it’s time to show you so
- 2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
- e been using Python core operations that allow us to operate on strings, lists, integers, and floats. It’s natural for us to formulate expressions using algebraic symbols representing operators, or to get a number of elements in a sequence or dictionary. We are able to add two or more string
- 3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
- every professional Python programmer, as it helps to make the code more consistent, more readable, and... till highly recommended reading, as they help you to better understand the philosophy behind Python an... essay “Self-Reliance” where Emerson urges readers to be consistent in their beliefs and practices. In ... **. On the one hand, consistency is a crucial factor that determines code readability. On the other h
- 1.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
- ng a GUI application from scratch Now we're going to build a very simple and rather useless GUI applic... application, when ready, will make you more accustomed to some ''tkinter'' **habits** and **conventions**. Our fabulous goal will look like the vision p... an event controller – look at the code in the editor to see how to do it. <code python> import tkint
- 1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
- t the final stage of our journey – we know enough to communicate with the web service using JSON as an... ation carrier. Unfortunately, our knowledge needs to be supplemented – we need a **server serving** a ... e** (sorry for all these serv..., we weren't able to avoid them) and we also need a tool simpler than the ''socket'' module to talk with the **service** (
- 1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
- ns, constants, classes, objects, and modules used to build GUI applications. The GUI application itse... window; * adding a set of necessary **widgets** to the window; * **launching** the event controller. That’s all. Really. Looks too good to be true? Let us show how it works. We’ll do it step-by-step. Ready The simplest (and at the
- Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
- olored and many (more and more every year) use it to display a GUI and to communicate with the user. They communicate bidirectionally. GUI stands for Gra... rface. In this three-word acronym, the User seems to be the most obvious part. The word Interface needs some more reflection, but in fact, it is clear too – it’s a tool used by the user to command a devi
- 1.7 Visiting widgets’ properties @info:cursos:pue:python-pcpp1:m3
- set of properties, and the widget’s user is able to **change** them by modifying the widget’s **appearance** and **behavior**. We’ll show you how to manipulate properties and present a basic set of ... ts properties by using the dot notation. You have to use one of two possible ways of reading and setti... dge''t has a property named ''prop'' and you want to read its value and then set it with a new value,