+ 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

1st Jan 2020, 12:57 AM
Jan Markus
2 Answers
+ 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
3rd Jan 2020, 1:09 PM
Théophile
Théophile - avatar
+ 5
ThĂ©ophile Thank you very much. 😊👍 That's how I wanted to do it.
3rd Jan 2020, 1:36 PM
Jan Markus