Le widget SpinBox Tkinter en Python

preview_player
Показать описание
Tkinter spinbox est un widget python pour la bibliothèque Tkinter, qui permet de manipuler d'autre widget: redimensionner un widget tkinter, déplacer un widget tkinter... le widget scale tkinter, doit être associer à un evenement tkinter pour faire manipuler d'autres widgets... La version du langage Python utilisée est : Python: Python 2.7 et python 3.7 version Windows 7 , python Windows 8, Python Windows 10. Pour un bon visionnage de la vidéo, utiliser google chrome.
Tkinter spinbox is a python widget for the Tkinter library, which allows you to manipulate other widgets: resize a tkinter widget, move a tkinter widget ... the scale tkinter widget must be associated with a tkinter event to manipulate others widgets ... The version of the Python language used is: Python: Python 2.7 and python 3.7 Windows 7 version, Python Windows 8, Python Windows 10. For a good viewing of the video, use google chrome.
Spinbox options
activebackground - Background color used when the mouse is over the widget; see Colors.
bg - Tkinter -or background- spinbox Background color of the widget.
bd - Tkinter -or borderwidth- spinbox Thickness of the border surrounding the widget; see Dimensions. 1 pixel by default.
buttonbackground - The background color used for arrows. 'gray' by default.
buttoncursor - The mouse pointer to use when the mouse is over an arrow; see The mouse pointer.
buttondownrelief - The relief style used for the buttondown relief effect; see Relief styles. 'raised' by default.
buttonup - The relief style used for the arrow release effect. 'raised' by default.
command - Use this option to specify a callback function or method that will be called when the user clicks one of the arrows. Note that this function is not called when the user enters the value directly.
cursor - The mouse pointer that is displayed when the mouse is over the value view / input area.
disabledbackground - This option and the next are used to specify the background and foreground colors used when the widget is in the 'disabled' state.
disabledforeground -
exportselection - Normally, text in the input box of a Spinbox can be cut or pasted. To disable this behavior, use exportselection = True.
font - The character font to use in the input box. See Fonts.
fg - Tkinter -or foreground- spinbox Color of the text that appears in the widget input area, and the color of the arrows.
format - Use this option to control the formatting Tkinter -or formatting- spinbox of the numeric value in conjunction with the from_ and to options. For example, format = '% 10.4f' will display the value with 10 characters including 4 for the digits after the decimal point.
from_ - Use this option with the to option Tkinter -described later- spinbox to constrain values ​​in a numeric range. For example, from_ = 1 and to = 9 will only allow values ​​in the range [1,9]. See also the increment option below.
highlightbackground - The color of the highlightbackground line when the widget does not have it. See Focus: receiving keyboard inputs.
highlightcolor - The color of the focus highlight line when the widget gets it.
highlightthickness - The thickness of the focus highlight line. 1 pixels by default. Set this value to 0 to remove focus highlighting.
increment - When constraining values ​​into an interval using the from_ and to options, you can use this option to specify by how much the value should increase or decrease when the user clicks one of the arrows. For example, if from_ = 0.0, to = 2.0, and increment = 0.5, the up arrow will cycle through the values ​​0.0, 0.5, 1.0, 1.5, and 2.0.
insertbackground - Used to specify the color of the insertion cursor displayed in the widget input area.
insertborderwidth - Used to control the thickness of the insert cursor border. By default, there is no border Tkinter -0- spinbox. If you set this option to a non-negative value, the border will produce a 'raised' relief effect.
insertofftime - This option and the next are used to control the blink rate of the insert cursor. They are used to indicate the duration of disappearance - insertofftime - and that of appearance - insertontime -, in milliseconds, of the latter.
insertontime -
insertwidth - Use this option to specify the width Tkinter -horizontal- spinbox of the insertion cursor. 2 pixels by default.
justify - This option is used to specify the alignment of the text in the widget input area. Possible values ​​are 'left', 'center' or 'right'.
readonlybackground - Background color of the widget when in 'readonly' state.
relief - Relief style for the widget. 'sunken' by default; see Relief styles.
repeatdelay - This option and the next are used to configure the automatic repeat function that is triggered when the user clicks and holds on any of the arrows. This function starts after repeatdelay milliseconds and repeatinterval is the time in milliseconds between two repetitions. The default values ​​are 400 and 100 milliseconds, respectively.
repeatinterval
Рекомендации по теме
Комментарии
Автор

Super. J'ai suivi un cours de programmation en java en live pour la premiere fois aujourd'hui. J'avoue que j'apprends a programmer pour la premiere fois, mais je comprenais totalement le raisonnement de l'instructeur pourtant j'avais 1h de retard. Je ne connais pas le langage en lui meme, mais je comprenais totalement la logique de raisonnement dans ces cas pratiques (roulette russe, logiciel skype...).
C'etait une petite satisfaction pour moi, parce que c'est le but de mon apprentissage de la programmation. Pouvoir comprendre comment raisonner pour resoudre des problemes complexes grace a la programmation et surtout pouvoir mieux comprendre, mes developpeurs et ingenieurs, leurs difficultes et contrainte, et mieux communiquer avec eux.
Merci pour ce travail que vous faites.

kevinngaleu
Автор

bonjour
i have a question . "spinbox "is a "dictionnary" or not?. because when we write spinbox.get() . spinbox should be here a dictionnary .
i didn't understand get() methode . is there any video about get() .
thank you

hamzakhamkham
welcome to shbcf.ru