Cerca
Heus ací els resultats de la cerca.
Noms de pàgina coincidents:
- 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
Resultats de text complet:
- 1.6 Events and how to handle them
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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!
- 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
- 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
- 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
- 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.