Cerca

Heus ací els resultats de la cerca.

2.3 A small lexicon of widgets - Part 3
9 Resultats, Darrera modificació:
contents in a more readable way, you can add a separator to it. This is done by a method named... ''add_separator()'', of course. <code python> import tkinter ... el="Open...", underline=0, command=open_file) # separator is here! sub_menu_file.add_separator() sub_menu_file.add_command(label="Quit", underline=0, command=
Python Professional Course Series: GUI Programming
8 Resultats, Darrera modificació:
you needed to have a specialized and completely separate device called a **terminal**. The terminal need... us at the moment, but the traditional programming paradigm in which the programmer is responsible for re... obliged not only to control each of the widgets separately, but also their pair, triple, and so on. Let... t in a more fashionable way) it needs a different paradigm. This paradigm exists, and is widely applied
1.6 Events and how to handle them
7 Resultats, Darrera modificació:
''\n'' digraph to visually break the info into separate lines. We’ll ask the ''showinfo()'' function t... et’s constructor is equipped with the ''command'' parameter, which is used to bind a callback. The wind... neither** a command **property nor a constructor parameter of that name**. Fortunately, you’re still a... back designed for usage with the command property/parameter is a **parameterless** function; * a callb
1.3 Settling widgets in the window's interior
6 Resultats, Darrera modificació:
st argument). The most usable ''place()'' method parameters are as follows (all of them are passed as k... t's desired **height** measured in pixels; if the parameter is omitted, the widget's height will be dete... et's desired **width** measured in pixels; if the parameter is omitted, the widget's width will be deter... try it. The most commonly used ''grid()'' method parameters are gathered below (as, previously, all of
1.2 Let TkInter speak!
5 Resultats, Darrera modificació:
package and you will still have to import them separately. As you already now, such an import will forc... itemized** by importing each of the facilities separately – just like this: <code python>from tkinter i... called – don't be afraid – ''destroy()''. It's a parameterless method, as destroying needs (in contrast... ction. The handler used by the button has to be a parameterless function of any name. Don't forget that
2.2 A small lexicon of widgets - Part 2
2 Resultats, Darrera modificació:
s. This means that the ''Frame'' can be used to separate a **rectangular part** of the window and to tre... window.mainloop() </code> We’ve defined two separate frames and filled them with two buttons each. N
2.4 Shaping the main window and conversing with the user
2 Resultats, Darrera modificació:
of the method named ''resizable()''. It uses two parameters named ''width'' and ''height'', but they ac... nse. The dialog’s behavior is determined by three parameters: * **title** – a string displayed in the
1.4 Coloring your widgets
1 Resultats, Darrera modificació:
to **raised** buttons only. There two additional parameters describing the second set of colors named '
1.5 A simple GUI application
1 Resultats, Darrera modificació:
able component used to **group widgets** and to separate them (visually) from other window components. O
1.9 Looking at variables
1 Resultats, Darrera modificació:
ng. The observer should be declared as a **three-parameter function**: <code python> def observer(id, i
2.1 A small lexicon of widgets - Part 1
1 Resultats, Darrera modificació:
ow.mainloop() </code> The program defines two separate Radiobutton groups, consisting of two Radiobutt