Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Tkinter] Adding space between Notebook tabs
Is there any way to add space between the tabs that are added to Tkinter Notebook?

Please elaborate on what you mean by space.
Do you mean empty tabs?
When I add tabs to Notebook they are laid out end to end with no separation between the tabs. What I want to do is have a small space between each tab so that you can clearly see each individual tab. An example below.


The geometry manager may be able to insert am empty column between the two, at whatever width you want. But no one can tell what you are doing without code.
Here is my code for the Notebook and tabs.

tab_control = ttk.Notebook(root)
tab1 = ttk.Frame(tab_control)
tab2 = ttk.Frame(tab_control)
tab_control.add(tab1, text='Dinosaur Picture')
tab_control.add(tab2, text='Size Comparison')
lbl1=Label(tab1, image=lbl1_image, bd=1)
lbl1.grid(column=0, row=0)
lbl2=Label(tab2, image=lbl2_image, bd=1)
lbl1.grid(column=0, row=0)
lbl2.grid(column=0, row=0) , y=220)


Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  [Tkinter] Need help please properly putting tabs within a PanedWindow JackMack118 2 368 Dec-08-2019, 03:02 PM
Last Post: balenaucigasa
  [PyQt] Drag items across tabs Alfalfa 5 688 Sep-01-2019, 11:58 PM
Last Post: Alfalfa
  [Tkinter] How to get a tabs works exactly same as google chrome sarthak260 0 832 Mar-07-2019, 10:45 AM
Last Post: sarthak260
  [Tkinter] Adding New TAB to NoteBook Widget by Clicking Vicolas 0 791 Feb-15-2019, 06:03 PM
Last Post: Vicolas
  [Tkinter] How to create multilple tabs in tkinter from different classes Rishav 5 11,075 Jul-11-2018, 11:59 AM
Last Post: CCChris91
  How to create mutiple tabs in tkinter using oops Rishav 2 3,279 Jul-12-2017, 04:43 PM
Last Post: Rishav

Forum Jump:

Users browsing this thread: 1 Guest(s)