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
  Pygobject Menu And Notebook? loss 0 133 Jun-29-2019, 12:49 PM
Last Post: loss
  The PMW Notebook Widget MattSA 6 443 Jun-03-2019, 07:24 PM
Last Post: Larz60+
  [WxPython] Adding a Window to a Button wxPython ShashankDS 4 339 Apr-23-2019, 06:53 PM
Last Post: Yoriz
  tkinter- adding a new window after clicking a button built on the gui ShashankDS 2 318 Apr-18-2019, 12:48 PM
Last Post: ShashankDS
  [Tkinter] How to get a tabs works exactly same as google chrome sarthak260 0 307 Mar-07-2019, 10:45 AM
Last Post: sarthak260
  [Tkinter] Select All text without space on the righthand side Vicolas 1 290 Feb-28-2019, 06:49 PM
Last Post: Larz60+
  [WxPython] how to reopen a closed tab of wx.aui.Notebook? royer14 2 314 Feb-18-2019, 12:31 AM
Last Post: royer14
  [Tkinter] Adding New TAB to NoteBook Widget by Clicking Vicolas 0 296 Feb-15-2019, 06:03 PM
Last Post: Vicolas
  Adding timer on the Messagebox aniyanetworks 6 707 Feb-13-2019, 07:48 PM
Last Post: aniyanetworks
  Adding Progressbar to button aniyanetworks 9 1,071 Feb-07-2019, 11:12 AM
Last Post: Larz60+

Forum Jump:

Users browsing this thread: 1 Guest(s)