In this video I'll show you how to limit the number of new windows you create with your Tkinter app.
I've shown you how to open new windows in your app before, but in this video I'll show you how to specify the exact number of new windows your app can open.
We'll do it using a good old fashioned python counter and some if/else logic.
#tkinter #codemy #JohnElder
Timecodes
0:00 - Introduction
1:24 - Create a Button
1:55 - Create a Function To Open New Windows
3:40 - Create a Counter
4:47 - Add Counter Logic To Function
5:43 - Add Message Box
6:52 - Change New Window Limit
7:26 - Conclusion
On this page of the site you can watch the video online Limit The Number Of New Windows To Open - Python Tkinter GUI Tutorial 185 with a duration of hours minute second in good quality, which was uploaded by the user Codemy.com 03 August 2021, share the link with friends and acquaintances, this video has already been watched 8,648 times on youtube and it was liked by 253 viewers. Enjoy your viewing!