Tkinter Notebook to create tabs and managing options to add image underline state with click events

plus2net
plus2net
1.6 هزار بار بازدید - 3 سال پیش - https://www.seevid.ir/fa/w/RCaRzJ3BHPI Notebook methods Padding https://www.seevid.ir/fa/w/RCaRzJ3BHPI
https://www.seevid.ir/fa/w/RCaRzJ3BHPI Notebook methods Padding https://www.seevid.ir/fa/w/RCaRzJ3BHPI Tab option STATE , disabled normal hidden https://www.seevid.ir/fa/w/RCaRzJ3BHPI Tab option STICKY https://www.seevid.ir/fa/w/RCaRzJ3BHPI Tab options image , compound https://www.seevid.ir/fa/w/RCaRzJ3BHPI Tab option underline Disable and hide Parent window from child : https://www.seevid.ir/fa/w/MLNAFTmh3iQ Pass data from parent to child window and return : https://www.seevid.ir/fa/w/STTUMGLZ-Cw Notebook widget is used to add child windows and display them through tabs. Notebook is part of ttk library and we have to import this library before using Notebook. Part II about Notebook methods : https://www.seevid.ir/fa/w/cs6GHOdIZ4E Notebook is having options height, width and padding. Height and width are desired height and width of the pans but will extend up to available dimensions. Padding is the gap of the pane from the parent window. The child window tab as several options which can be managed. State, sticky, text, image , compound, underline are the options for the tabs. State: This can take values like disabled, normal and hidden. By default the value is normal and it can be changed to disabled and hidden. In case of disabled the tab is visible but can’t be accessed. In Hidden state the tab will not be visible to user. Sticky, : Option is used in grid layout and align the window in different directions. Text: The text displayed at the top of the child window for selection by user Image: Image can be displayed along with the text ( or only image ) in each tab top. Compound : how the image and text is to be displayed Underline : required for mnemonic activation ( using keys for selecting the tabs ) We can place buttons in parent window ( not in tabs ) and use the click event of these buttons to manage the values of various options. https://www.plus2net.com/python/tkinter-notebook.php Part II on how to trigger events and use various methods to manage tabs #tkinternotebook #tkinterTabs #TabOptions #NotebookOptions #TkinterTabState #plus2net #tkinter #python #Options
3 سال پیش در تاریخ 1400/07/05 منتشر شده است.
1,699 بـار بازدید شده
... بیشتر