November 11th, 2005, 02:48 AM
Tkinter IP Entry?
Hi to all, I was wondering:
Is there any way to have a Tkinter text Entry that have 3 dots in it which is like a "IP input" ? where you can only write numbers and not more than 3 numbers between each of the dots?
November 11th, 2005, 09:06 AM
Tkinter does not have a basic widget that validates but you can write your own or use a something like Python Mega Widgets which builds on Tkinter.
If you are interested in more complex dialogs you should check out Python Mega Widgets Entry Field which implements input validation. You may need to combine 4 Entryfields to get the effect you want.
If you can use wxPython instead why not have a look at MaskedEditControls or wxValidator.
November 11th, 2005, 09:12 AM
If what Grim suggested doesn't work out, you could simply use 4 text areas with ... static text's between them.
November 11th, 2005, 10:17 AM
If you don't want to use PMW, here is a validating text entry
Comments on this post
November 14th, 2005, 02:44 AM
Ok thanks... What I wanted most is to have the dots(static/not removable) inside the entry box, not static text between many entry boxes, but I guess maybe wxpython can do this more easy.
I will take a look a those links and consider it, it's not that important that I have to change to wxpython or something else :-).
thanks for many replies!