Oct-04-2020, 06:48 PM
Hi there, Need some help.
I want the tabs to be aligned in the panel from the left. I have made them vertically positioned but couldn't correct it's positioning. I don't know what I am doing wrong in the code.
Here is the code and it's result.
I want the tabs to be aligned in the panel from the left. I have made them vertically positioned but couldn't correct it's positioning. I don't know what I am doing wrong in the code.
Here is the code and it's result.
tabs_frame = Frame(self.root, bd=4, bg="White", relief=GROOVE) tabs_frame.place(x=0, y=27, width=1598, height=790) style = ttk.Style(tabs_frame) style.configure('lefttab.TNotebook', tabposition='wn') style.configure('TNotebook.Tab', padding=(40, 15, 30, 5)) ttk.Style().configure("TNotebook", background='maroon', foreground='white') notebook = ttk.Notebook(tabs_frame, style='lefttab.TNotebook') notebook.pack(fill=X) frame1 = tk.Frame(notebook, bg='white', width=1431, height=780) frame2 = tk.Frame(notebook, bg='white', width=1431, height=780) frame3 = tk.Frame(notebook, bg='white', width=1431, height=780) frame4 = tk.Frame(notebook, bg='white', width=1431, height=780) frame5 = tk.Frame(notebook, bg='white', width=1431, height=780) frame6 = tk.Frame(notebook, bg='white', width=1431, height=780) frame7 = tk.Frame(notebook, bg='white', width=1431, height=780) frame8 = tk.Frame(notebook, bg='white', width=1431, height=780) frame9 = tk.Frame(notebook, bg='white', width=1431, height=780) frame10 = tk.Frame(notebook, bg='white', width=1431, height=780) frame11 = tk.Frame(notebook, bg='white', width=1431, height=780) frame12 = tk.Frame(notebook, bg='white', width=1431, height=780) frame13 = tk.Frame(notebook, bg='white', width=1431, height=780) frame14 = tk.Frame(notebook, bg='white', width=1431, height=780) frame15 = tk.Frame(notebook, bg='white', width=1431, height=780) frame16 = tk.Frame(notebook, bg='white', width=1431, height=780) notebook.add(frame1, text='Select Patient') notebook.add(frame2, text='Pregnancy Form') notebook.add(frame3, text='Birth Form') notebook.add(frame4, text='Admission Form') notebook.add(frame5, text='Exam Form') notebook.add(frame6, text='Respiratory Form') notebook.add(frame7, text='Fluids Form') notebook.add(frame8, text='Daily Form') notebook.add(frame9, text='Tracking From') notebook.add(frame10, text='Diagnosis Form') notebook.add(frame11, text='XRay Form') notebook.add(frame12, text='Lab1 Form') notebook.add(frame13, text='Lab2 Form') notebook.add(frame14, text='Discharge Form') notebook.add(frame15, text='Summary Form') notebook.add(frame16, text='Other Form')