Message Boxes with TTKBootstrap - Tkinter TTKBootstrap 20

preview_player
Показать описание
In this video I'll show you how to Messages Boxes with TTKBootstrap and Tkinter.

MessageBox in TTKBootstrap and Tkinter is super important. I'll show you how to create them in this video.

I'll also show you how to add a custom icon to the popup box.

There are several message boxes, we'll look at: yesno, ok, okcancel, show_info, show_error, show_question, show_warning, yesnocancel, and retrycancel.

#tkinter #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:47 - Add Popup Icon
2:51 - Create Buttons and Labels
3:58 - Create yesno MessageBox
5:15 - Handle MessageBox Click
7:04 - Create ok MessageBox
7:32 - Create okcancel MessageBox
8:22 - Create show_info MessageBox
8:56 - Create show_error MessageBox
9:28 - Create show_question MessageBox
10:18 - Create show_warning MessageBox
10:58 - Create yesnocancel MessageBox
11:25 - Create retrycancel MessageBox
11:57 - Check Out The TTKBootstrap Docs
12:26 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch TTKBootstrap Playlist ✅ FREE Tkinter Widget Book
▶ See More At: ✅ Subscribe To My YouTube Channel:
▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group:
▶ Get The Code For This Video

TkinterPython
Автор

How can I confirm the returns of MessageBox, If I run the code in English environment, it return 'Ok', but if run in Chinese environment, "mb == 'Ok'" is not work. Is there any enums instead the hardcode to facilitate compatibility with different language environments? thx

merricz
Автор

Nice video as usual! But the example isn't working for me.
Environment: python 3.11.3, EndeavourOS (Arch) and tTTKBootstrap was installed today.
if clicker() is called before entering root.mainloop() it works as coded; but it does doesn't appear when the button is pressed. Any chance of a problem twixt the versions of python and Tkinter/TTKBootstrap?
As I am "young" in the ways of Tkinter and TTKBooststrap any hints aimed at trouble shooting are appreciated.

rickcommo
Автор

I am new to Tkinter GUI and only have a little prior Python experience. I'm finding your videos super helpful but this mb example is not working for me the same as it is for you. The only intentional change I have made is to leave out the 2 lines where you insert your own icon. If I run the code as you have it up to 5.15 in the video, the root window appears with the mb already on it. If I move the mb off the root window the root window has no button showing. If I click one of the mb buttons the mb closes and then the root window button appears. If I click the root button nothing happens. What's wrong please?

keithfisk