câu hỏi |
câu trả lời |
This represents the parent window. bắt đầu học
|
|
|
|
|
Calls the button's callback, and returns what that function returns. Has no effect if the button is disabled or there is no callback. bắt đầu học
|
|
|
|
|
Background color when the button is under the cursor. For button bắt đầu học
|
|
|
|
|
Foreground color when the button is under the cursor. bắt đầu học
|
|
|
|
|
Border width in pixels. Default is 2. bắt đầu học
|
|
|
|
|
bắt đầu học
|
|
|
|
|
Function or method to be called when the button is clicked. bắt đầu học
|
|
For entry: A procedure to be called every time the user changes the state of this checkbutton.
|
|
|
Normal foreground (text) color. bắt đầu học
|
|
|
|
|
Text font to be used for the button's label. bắt đầu học
|
|
|
|
|
Height of the button in text lines (for textual buttons) or pixels (for images). bắt đầu học
|
|
|
|
|
The color of the focus highlight when the widget has focus. bắt đầu học
|
|
Nowhere works.
|
|
|
Image to be displayed on the button (instead of text). bắt đầu học
|
|
|
|
|
How to show multiple text lines: LEFT to left-justify each line or RIGHT to right-justify. CENTER to center them. bắt đầu học
|
|
|
|
|
Additional padding left and right of the text. bắt đầu học
|
|
|
|
|
Additional padding above and below the text. bắt đầu học
|
|
|
|
|
Relief specifies the type of the border. Some of the values are SUNKEN, RAISED, GROOVE, and RIDGE. bắt đầu học
|
|
|
|
|
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. bắt đầu học
|
|
|
|
|
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. bắt đầu học
|
|
|
|
|
Width of the button in letters (if displaying text) or pixels (if displaying an image). bắt đầu học
|
|
|
|
|
If this value is set to a positive number, the text lines will be wrapped to fit within this length. bắt đầu học
|
|
|
|
|
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. bắt đầu học
|
|
|
|
|
! By default, if you select text within an Entry widget, it is automatically exported to the clipboard. To avoid this exportation, use exportselection = 0 bắt đầu học
|
|
|
|
|
The background color to use displaying selected text. bắt đầu học
|
|
|
|
|
The width of the border to use around selected text. The default is one pixel. bắt đầu học
|
|
|
|
|
The foreground (text) color of selected text. bắt đầu học
|
|
|
|
|
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 = "*". bắt đầu học
|
|
|
|
|
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. bắt đầu học
|
|
|
|
|
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. bắt đầu học
|
|
delete (first, last = None)
|
|
|
Returns the entry's current text as a string. bắt đầu học
|
|
|
|
|
Set the insertion cursor just before the character at the given index. bắt đầu học
|
|
|
|
|
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. bắt đầu học
|
|
|
|
|
Inserts string s before the character at the given index. bắt đầu học
|
|
|
|
|
This method is used to make sure that the selection includes the character at the specified index. bắt đầu học
|
|
|
|
|
Clears the selection. If there isn't currently a selection, has no effect. bắt đầu học
|
|
|
|
|
Sets the ANCHOR index position to the character selected by index, and selects that character. bắt đầu học
|
|
|
|
|
If there is a selection, returns true, else returns false. bắt đầu học
|
|
|
|
|
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 bắt đầu học
|
|
|
|
|
The foreground color shown on this menubutton when it is disabled. bắt đầu học
|
|
|
|
|
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. bắt đầu học
|
|
|
|
|