Python Tkinter, problem with alignment of buttons in Notebook widget | Sololearn: Learn to code for FREE!

+7

Python Tkinter, problem with alignment of buttons in Notebook widget

I have a problem with the Notebook-widget of Python's Tkinter-module when aligning buttons. I don't understand how to achieve in the attached code, that in the 'text'-tab the two buttons 'previous' and 'next' stick to the lower border of the root-window, independent of the length of the text in the Message-widget. The two buttons shall only be present in the 'text' tab, not in the other two tabs. I want to display different texts of different lengths and I want the buttons be always positioned at the lower border of the window. Could anybody explain what I have to change in the code, please? https://code.sololearn.com/cHorwDRn5C8S/?ref=app

1/1/2020 12:57:45 AM

Jan Markus

2 Answers

New Answer

+1

I configured 'tab1' with 'rowconfigure' and it worked. It is indeed the main frame of the tab1... Hope it helps https://code.sololearn.com/c9LoO23dooxN/?ref=app

+5

Théophile Thank you very much. 😊👍 That's how I wanted to do it.