5/3/2023 0 Comments Python tkinter avanzado![]() ![]() ![]() Given below are some of the examples of Tkinter: Example #1 Used to underline the text of the label in the button, when the value is -1, nothing remains underlined, whereas when the value if nonnegative, then the corresponding character in the text will be underlined. The option which needs to be set when the mouse is over it. Mentions the variety of the border that needs to be used, some among the usual values are SUNKEN, GROOVE, RAISED and RIDGE. The padding area between the label and the button corners in the above and below the area of the button. The padding area between the label and the button corners on the left and right side of the button. How the text needs to be aligned in the button, whether it needs to be left-justified or right-justified else in the center. ![]() If an image needs to be used instead of a text in the button. Represents the height of the button which is used. The color of the text label placed on the button.įont of the text to be used in the label of the button. The operation which needs to take place on the click of the button. The initial background color of the button. Button(master,option=value,) Attributes of Python Tkinter Buttonįollowing are the list of attributes: OptionĬolor of the background area of the button when it gets clicked.Ĭolor of the text in the button when it gets clicked. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |