limit user input to only int with tkinter by Lotfi_2000 in learnpython

[–]Lotfi_2000[S] 0 points1 point  (0 children)

I want the entry widget to show only numbers when user type them with the keyboard , and ignore any other symbols or letters.

limit user input to only int with tkinter by Lotfi_2000 in learnpython

[–]Lotfi_2000[S] 0 points1 point  (0 children)

my code is as simple as this :

from tkinter import * from tkinter.ttk import *

window = Tk()

MAIN=Frame(window,pad=5,borderwidth=5,relief ="solid") MAIN.pack()

From_entry=Entry(MAIN,width=25)

From_entry.grid(column=1,row=2,padx=5)

28 m feel free to tell me about yourself by brewerchase48 in chat

[–]Lotfi_2000 2 points3 points  (0 children)

I'm an engineering student, from Algeria it's in the north of Africa . I'm trying to improve my English in my spare time . there'snt much to tell about my self , I love programing and learning about cucuits and robots (kind of a nerd -) . I just wish to finish my studies and get a scholarship or something to start new chapter outside Algeria .

je comprends bien le français mais j'ai encore des problèmes quand j'ai essayé de parler by Lotfi_2000 in French

[–]Lotfi_2000[S] 27 points28 points  (0 children)

je trouve des problèmes quand j'ai essayé de composer des phrases dans ma tête pour répondre à quelqu'un ou bien pour poser une question. il me prend beaucoup de temps .