How to limit text and numbers in python/tkinter GUI interface

Joined
Dec 6, 2019
Messages
1
Reaction score
1
Hi

New to this coding world but love it, however, I am stuck trying to add a stringvalue for a window to limit the number of text in the username field and also limit numbers in the phone number field/window.

Can anyone help, please?
 
Joined
Nov 27, 2019
Messages
163
Reaction score
28
Welcome Bigboibremmer, Hope to see more of you in the future. This is the area where you introduce yourself, not where you ask questions. check the main page for the areas. This question is for the HTML section, but I'll answer.
The maxlength attribute for the INPUT tag is what you want.
Ex., <input type="text" maxlength="5">
Should work the same for type="tel", but you should look at this page https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/tel It's not an easy thing to use
 
Joined
Jan 4, 2020
Messages
10
Reaction score
2
Your topic and content are totally off your topic is about py while the content talks about html plus wrong section
 
Joined
Nov 27, 2019
Messages
163
Reaction score
28
Welcome krypton, hope to see more of you in the future.
You should address who your speaking to and use punctuation, but I have deciphered your message and believe it's to me.
I stand by my answer. The problem Bigboibremmer has can be solved, in fact not become a problem, if he/she uses the correct HTML code. No need for python.
I did tell him that it is the wrong section for a question. She should have posted in the python section; Should I have waited for the OP to re-post or for the mods to move the question?
 
Joined
Jan 4, 2020
Messages
10
Reaction score
2
Welcome krypton, hope to see more of you in the future.
You should address who your speaking to and use punctuation, but I have deciphered your message and believe it's to me.
I stand by my answer. The problem Bigboibremmer has can be solved, in fact not become a problem, if he/she uses the correct HTML code. No need for python.
I did tell him that it is the wrong section for a question. She should have posted in the python section; Should I have waited for the OP to re-post or for the mods to move the question?
Sorry about the above misunderstanding. And thanks for the warm welcome... My initial comment "Your topic and content are totally off your topic is about py while the content talks about html plus wrong section" was ment for @Bigboibremmer He's topic and the content were off point.. Your answer was correct..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top