0

I have a code but After add just Label frame not working fine like that :

label = Label(self, text="Test-1")
label .grid(row=1, stick="w", padx=20)

The Label not go in Left.

but after add ttk :

label = ttk.Label(self, text="Test-1")
label .grid(row=1, stick="w", padx=20)

the Label Frame work fine why?

stovfl
  • 14,998
  • 7
  • 24
  • 51
john
  • 75
  • 1
  • 8
  • Does this answer your question? [what-is-the-difference-between-the-widgets-of-tkinter-and-tkinter-ttk-in-python](https://stackoverflow.com/questions/19561727) – stovfl May 01 '20 at 14:25

1 Answers1

1

Because in the first one you didn't use this phrase

from tkinter import *

The * imports everything related to tkinter but if you used this

from tkinter import ttk

you only import the function that create the table only

David Buck
  • 3,752
  • 35
  • 31
  • 35
py.elie
  • 26
  • 2