I tried to create 3 sub tabs but I couldn´t get as vertical as it shown in Img_1.pn image and finally the square line shouldn´t appear tha´s highlighted with red color enter image description here
import tkinter as tk
from tkinter import ttk
from tkinter import Tk, PhotoImage, Label
# Main Window
root = tk.Tk()
root.geometry("500x200")
root.title("Tools")
# Create the notebook widget
notebook = ttk.Notebook(root)
notebook.grid(row=10, column=10, sticky="nwes")
# Tab 1
tab1 = ttk.Frame(notebook)
notebook.add(tab1, text="Splitting")
# Create the notebook widget for the sub tabs
subnotebook1 = ttk.Notebook(tab1)
subnotebook1.pack(fill='both', expand='yes')
# First sub tab for tab1
subtab1_1 = ttk.Frame(subnotebook1)
subnotebook1.add(subtab1_1, text='Whole Block Model')
# Second sub tab for tab1
subtab1_2 = ttk.Frame(subnotebook1)
subnotebook1.add(subtab1_2, text='Fractional Block Boundary Model')
# Third sub tab for tab1
subtab1_3 = ttk.Frame(subnotebook1)
subnotebook1.add(subtab1_3, text='Divisional Split')
# Tab 2
tab2 = ttk.Frame(notebook)
notebook.add(tab2, text="Converting")
# Tab 3
tab3 = ttk.Frame(notebook)
notebook.add(tab3, text="General")
root.mainloop()