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