Tkinter - Create tabs in your GUI interface using Notebook

preview_player
Показать описание

In this video I show how to create and add a notebook widget which will display tabs in your interface that you can add widgets to individually.
Рекомендации по теме
Комментарии
Автор

Thanks the for the tutorial. Filling in the gaps that other tutorials have seemed to miss

SignalsEverywhere
Автор

I really needed to use tabs, thank you so much!

blingclem
Автор

Thank you for a clear and concise video

liltlefruitfly
Автор

I followed your steps, which work, but I'm having trouble going beyond this video and adding items to either page1 or page2. For instance, I'm trying to do "page1.create_rectangle(10, 10, 20, 20)" and I get a Frame error. Any chance you could direct me on how to add something, or even do a follow up video? Yours is the only one I could find on how to create multiple tabs in Tkinter.

jfarr
Автор

Hi Kyle, I have question. Is it possible to align the tabs from top to bottom on the left side of the notebook?

From some search online, I attempted using the following code:
style = ttk.Style()
style.configure("TNotebook", tabposition="WN")
ttk.Notebook(root, style="TNotebook")
# Code for adding pages is omitted here

The above code worked for a person on StackOverflow but not for me. Could you explain why?

thomaswandachen
Автор

how to change background colour of that frame?

dhairyabhatt
Автор

trying to figure out how to add a canvas and a colored rectangle. I use grid, then it replaces the tabs with my green rectangle.

I have canvas gridded to each tab, each page has a different color rectangle, but events in page1 show up in page3. Weird!

vincentcleaver
Автор

This is a good video. You could've added two colors to differentiate the notebook pages though

pradyothshandilya
Автор

may Almighty Allah give u reward sir for helping ppl

mohammadbilalniazi
Автор

Do you have any examples where you have a top row of tabs and each tab would have a sub set of tabs on the left side?
Thank you

andrelabbe
Автор

Thanks. I was wondering how to do this.

novicetech
Автор

How do I make the pages be empty from the first tab?

Drqonic
Автор

Hi Kyle
This is for Python 2.x, I am using Python 3.x and getting errors. Can you redo the code for Python 3.x
Tks.

samborys
Автор

unfortunately the smallguysit.com site seems to be a chinese spam site now

JerryIsdale