Label `bg` does not exist

后端 未结 1 1982
半阙折子戏
半阙折子戏 2021-01-28 17:52

This is my code for my label

from Tkinter import Tk, BOTH, Canvas, Text,END
import Tkinter as tk
from ttk import Frame, Button, Style, Label, Entry
from tkMessag         


        
相关标签:
1条回答
  • 2021-01-28 18:21

    The problem is that you are using the ttk Label widget, and it does not support the bg or ft options. You can use background and foreground instead.

    0 讨论(0)
提交回复
热议问题