vendredi 11 septembre 2020

Why do I get an error with any option used for python3 ttk checkbox?

I have a checkbox that works fine with the defaults values:

import tkinter as tk
from tkinter import ttk
from tkinter.ttk import *

chk1 = Checkbutton(self , text=' 0 ', var=_Ch1_ ) 
chk1.grid(column=4, row=1)

When I try to add any option like "height = 5" I get the error:

_tkinter.TclError: unknown option "-height"

init.py lione 2299




Aucun commentaire:

Enregistrer un commentaire