Tkinter dynamically creating and validating Entry and Label widgets on user inputs and messaging

preview_player
Показать описание
Based on some external conditions we have to work with entry widgets where we were not knowing about exact number of required inputs. Here dynamically we have to create the entry widget with Labels.
The requirement may come from database where output depends on input conditions and varies with input queries.
Here we have used one variable to set the required number of inputs.
Inside a for loop we will display inputs and labels and store the reference of the input in a list.
We will also have one button and on click of the button we will trigger a function to check all the inputs.
Using the reference list we will loop through and check all the inputs for minimum 3 chars length of data and if not found then one flag is set to True indicating that all inputs are not validated.
This message of clear validation or not will be displayed by using one Label through config() option.
One timer is used to display the error ( or clear ) message and hide the same after 3000 milliseconds.

Download the source code from here

#TkinterDynamicEntry #dynamicEntry #widgetsEntry #dynamicDataEntry #AddingEnter #plus2net
Рекомендации по теме
Комментарии
Автор

Very good and strong conceptual tutorial.

Yes, my feedback and suggestion is, If you could upload the next part 2, 💪💪
In part 2, there, the input should come from a scanner, (scanned input, Data.)
the first input must be a String, and the next 3 inputs must be integers.
And the last input should be given manually.

And the last important task is the Submit button.
The Submit button should send these input data to, an online website, For example to
LastPass etc.

I write it too much, but I know You are one of the most Strong Programming experts, the way you teach is super👍👍, and the most honest YouTuber. I like this.
Thanks💯👍👍.
Waiting for your reply

saweranabi
Автор

Thanks very much for the video.
For 01:50, the blank list, 'ref', how do you refer to the 1 of the 5 individual entry widgets, let's say, bind entry2 to whatever button_event?

I've got a similar problem (except that I create multiple frames with a for-loop) and got stuck on it.

Many thanks.

clueple
Автор

How to destroy labels and make new labels according to the user input?

dinhcao
Автор

Sir, could you please tell me how can i print all the entry value in one label

huzaifa
Автор

Can you make a push and pop button through which we can inter the value in entry box and delete it with help of pop button

LoveLogicLife
Автор

When I run the code it give error that nontype object has no attribute like config. How I can solve it

LoveLogicLife
Автор

hi, what if you want different names for each label?

matthewgatdula
Автор

Sir I want to print List have having Entry 1, 2, 3, 4, 5 as elements

nikhildeshpande
Автор

If we want to enter integer value in the Label

LoveLogicLife