Tkinter simpledialog to collect user input in integer float or string and displaying in Label
Автор: plus2net
Загружено: 2022-02-28
Просмотров: 8073
Here the main advantage of using simpledialog to take user input is the validation. The dialog box will only accept the required type of input and through error message if any other type is entered by user.
If we are using simpledialog.askinteger() then any float or string input will show error message. Similarly for simpledialog.askfloat() we can enter integer ( it will be converted to float ) but we can’t enter any string.
From simpledialog.askstring() we can enter integer, float data types but it will store them as string.
Full source code is here
https://www.plus2net.com/python/tkint...
#simpledialog #askinteger #askfloat #askstring #userinput #tkitnerUserInput #plus2net #python #askuserinput
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: