Button/|Menubutton/|Entry – Parameters & methods

 0    39 Fiche    sir
скачать mp3 басу ойын өзіңді тексер
 
сұрақ жауап
This represents the parent window.
оқуды бастаңыз
master
Calls the button's callback, and returns what that function returns. Has no effect if the button is disabled or there is no callback.
оқуды бастаңыз
. invoke()
Background color when the button is under the cursor.
For button
оқуды бастаңыз
activebackground
Foreground color when the button is under the cursor.
оқуды бастаңыз
activeforeground
For button
Border width in pixels. Default is 2.
оқуды бастаңыз
bd
Normal background color.
оқуды бастаңыз
bg
Function or method to be called when the button is clicked.
оқуды бастаңыз
command
For entry: A procedure to be called every time the user changes the state of this checkbutton.
Normal foreground (text) color.
оқуды бастаңыз
fg
Text font to be used for the button's label.
оқуды бастаңыз
font
Height of the button in text lines (for textual buttons) or pixels (for images).
оқуды бастаңыз
height
The color of the focus highlight when the widget has focus.
оқуды бастаңыз
highlightcolor
Nowhere works.
Image to be displayed on the button (instead of text).
оқуды бастаңыз
image
How to show multiple text lines: LEFT to left-justify each line or RIGHT to right-justify. CENTER to center them.
оқуды бастаңыз
justify
Additional padding left and right of the text.
оқуды бастаңыз
padx
Additional padding above and below the text.
оқуды бастаңыз
pady
Relief specifies the type of the border. Some of the values are SUNKEN, RAISED, GROOVE, and RIDGE.
оқуды бастаңыз
relief
Set this option to DISABLED to gray out the button and make it unresponsive. Has the value ACTIVE when the mouse is over it. Default is NORMAL.
оқуды бастаңыз
state
Default is -1, meaning that no character of the text on the button will be underlined. If nonnegative, the corresponding text character will be underlined.
оқуды бастаңыз
underline
Width of the button in letters (if displaying text) or pixels (if displaying an image).
оқуды бастаңыз
width
If this value is set to a positive number, the text lines will be wrapped to fit within this length.
оқуды бастаңыз
wraplength
If you set this option to a cursor name (arrow, dot etc.), the mouse cursor will change to that pattern when it is over the checkbutton.
оқуды бастаңыз
cursor
! By default, if you select text within an Entry widget, it is automatically exported to the clipboard. To avoid this exportation, use exportselection = 0
оқуды бастаңыз
! exportselection
The background color to use displaying selected text.
оқуды бастаңыз
selectbackground
The width of the border to use around selected text. The default is one pixel.
оқуды бастаңыз
selectborderwidth
The foreground (text) color of selected text.
оқуды бастаңыз
selectforeground
Normally, the characters that the user types appear in the entry. To make a. password. entry that echoes each character as an asterisk, set show = "*".
оқуды бастаңыз
show
If you expect that users will often enter more text than the onscreen size of the widget, you can link your entry widget to a scrollbar.
оқуды бастаңыз
xscrollcommand
Deletes characters from the widget, starting with the one at index first, up to but not including the character at position last. If the second argument is omitted, only the single character at position first is deleted.
оқуды бастаңыз
delete (first, last = None)
Returns the entry's current text as a string.
оқуды бастаңыз
get()
Set the insertion cursor just before the character at the given index.
оқуды бастаңыз
icursor (index)
Shift the contents of the entry so that the character at the given index is the leftmost visible character. Has no effect if the text fits entirely within the entry.
оқуды бастаңыз
index (index)
Inserts string s before the character at the given index.
оқуды бастаңыз
insert (index, s)
This method is used to make sure that the selection includes the character at the specified index.
оқуды бастаңыз
select_adjust (index)
Clears the selection. If there isn't currently a selection, has no effect.
оқуды бастаңыз
select_clear()
Sets the ANCHOR index position to the character selected by index, and selects that character.
оқуды бастаңыз
select_from (index)
If there is a selection, returns true, else returns false.
оқуды бастаңыз
select_present()
Set direction = LEFT to display the menu to the left of the button; use direction = RIGHT to display the menu to the right of the button; or use direction = 'above' to place the menu above the button
оқуды бастаңыз
direction
The foreground color shown on this menubutton when it is disabled.
оқуды бастаңыз
disabledforeground
To associate the menubutton with a set of choices, set this option to the Menu object containing those choices. That menu object must have been created by passing the associated menubutton to the constructor as its first argument.
оқуды бастаңыз
menu

Пікір қалдыру үшін жүйеге кіру керек.