Can you help with tkinter GUI?

Tell us what’s happening:

I am getting this error when I run the module "style.config(“leftab.TNotebook”,tabpostion=‘wn’)
AttributeError: ‘Style’ object has no attribute ‘config’ "

Here is my code

//
import tkinter as tk
from tkinter import*
from tkinter import ttk

#Structur and Layout
window = Tk()
window.title("Elim Registration")
window.geometry("750x450")

style = ttk.Style(window)
style.config("leftab.TNotebook",tabpostion='wn')

#Tab Layout
tab_control = ttkNotebook(window,style='lefttab.TNotebook')

tab1 = ttk.Frame(tab_control)
tab2 = ttk.Frame(tab_control)
tab3 = ttk.Frame(tab_control)
tab4 = ttk.Frame(tab_control)
tab5 = ttk.Frame(tab_control)

#Add Tabs to Notebook
tab_control.add(tab1,text=f'{"Home":^20s}')
tab_control.add(tab1,text=f'{"View":^20s}')
tab_control.add(tab1,text=f'{"Search":^20s}')
tab_control.add(tab1,text=f'{"Export":^20s}')
tab_control.add(tab1,text=f'{"About":^20s}')

tab-control.pack(expand=1,fill="both")

window.mainloop()
//


**Your code so far**
        

**Your browser information:**

User Agent is: <code>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36</code>.

**Challenge:** Arithmetic Formatter

**Link to the challenge:**
https://www.freecodecamp.org/learn/scientific-computing-with-python/scientific-computing-with-python-projects/arithmetic-formatter

@JeremyLT
I was able to fix it . I just changed “style.config” to style.configure" and it worked
thanks for your help :grinning:

this is driving me crazy
error " tab_control = tkNotebook(window,style=‘lefttab.TNotebook’)
NameError: name ‘tkNotebook’ is not defined"
////
import tkinter as tk
from tkinter import*
from tkinter import ttk

#Structur and Layout
window = Tk()
window.title(“Elim Registration”)
window.geometry(“750x450”)

style = ttk.Style(window)
style.configure(“lefttab.TNotebook”,tabpostion=‘wn’)

#Tab Layout
tab_control = tkNotebook(window,style=‘lefttab.TNotebook’)

tab1 = ttk.Frame(tab_control)
tab2 = ttk.Frame(tab_control)
tab3 = ttk.Frame(tab_control)
tab4 = ttk.Frame(tab_control)
tab5 = ttk.Frame(tab_control)

#Add Tabs to Notebook
tab_control.add(tab1,text=f’{“Home”:^20s}’)
tab_control.add(tab1,text=f’{“View”:^20s}’)
tab_control.add(tab1,text=f’{“Search”:^20s}’)
tab_control.add(tab1,text=f’{“Export”:^20s}’)
tab_control.add(tab1,text=f’{“About”:^20s}’)

tab-control.pack(expand=1,fill=“both”)

label1 = Label(tab1,text=“Elim Registration”,padx=5,pady=5)
label1.grid(column=0, row=0)

label2 = Label(tab2,text=“View”,padx=5,pady=5)
label2.grid(column=0, row=0)

label3 = Label(tab3,text=“Search”,padx=5,pady=5)
label3.grid(column=0, row=0)

label4 = Label(tab4,text=“Export”,padx=5,pady=5)
label4.grid(column=0, row=0)

label5 = Label(tab5,text=“About”,padx=5,pady=5)
label5.grid(column=0, row=0)

#Main Home
l1 = Label(tab1,text=“First Name”, padx=5,pady=5)
l1.grid(column=0,row=1)
frame_raw_entry = StringVar()
entry_frame = Entry(tab1,textvariable=fname_raw_entry,width=50)
entry_fram.grid(rwo=1,column=1)

#View

#Search

#About

window.mainloop()

////