Tkinter Relief styles (style)

Source: Internet
Author: User
Tkinter Relief Styles: The relief of the components refers to the influence of some of the components outside of the analog-to-digital periphery. Below is a row of buttons for the screen showing all possible relief style elements of the relief type refers to some simulation of the influence of the outside of the components around. Here's a line of buttons that shows all the possible relief styles:

The following is a list of possible constants that can be used to provide relief properties.

  • FLAT

  • Raised

  • SUNKEN

  • GROOVE

  • RIDGE

Example:
From Tkinter import *import tkintertop = tkinter.tk () B1 = Tkinter.button (top, Text = "FLAT", Relief=flat) B2 = Tkinter.butt On (top, Text = "raised", relief=raised) B3 = Tkinter.button (top, Text = "SUNKEN", relief=sunken) B4 = Tkinter.button (Top, TE XT = "GROOVE", relief=groove) B5 = Tkinter.button (top, Text = "RIDGE", Relief=ridge) B1.pack () B2.pack () B3.pack () B4.pack () B5.pack () Top.mainloop ()

This will produce the following results:

Tkinter Relief styles (style)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.