Specify an image or images to show in addition to text or instead of text. Specify the font style for displaying text Specify the mouse cursor’s appearance when the mouse is over the widget. Specify how to display both text and image on the Label. Specify a custom widget class name for changing the label’s appearance. When the text and/or image are smaller than the width, the anchor option determines where to position them tk.W, tk.CENTER or tk.E for left, center, and right alignment respectively. The Label widget has many options that allow you to customize its appearance: Options Label = ttk.Label(container, **options) Code language: Python ( python )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |