Re: How to restrict lenght of entry widget to certain number of character

2005-06-02 Thread Michael Onfrek
Ideed, good idea! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to restrict lenght of entry widget to certain number of character

2005-06-02 Thread VK
Peter Otten wrote: > Michael Onfrek wrote: > > >>import Tkinter as tk >> >>Hi! Can you explain what line above mean? >> >>I also found : http://effbot.org/zone/tkinter-entry-validate.htm >> >>It works for me, but I not really understand how? :) > > >>>import Tkinter as tk > > > Make objects

Re: How to restrict lenght of entry widget to certain number of character

2005-06-02 Thread Peter Otten
Michael Onfrek wrote: > import Tkinter as tk > > Hi! Can you explain what line above mean? > > I also found : http://effbot.org/zone/tkinter-entry-validate.htm > > It works for me, but I not really understand how? :) >> import Tkinter as tk Make objects defined in Tkinter available under the

Re: How to restrict lenght of entry widget to certain number of character

2005-06-02 Thread Michael Onfrek
import Tkinter as tk Hi! Can you explain what line above mean? I also found : http://effbot.org/zone/tkinter-entry-validate.htm It works for me, but I not really understand how? :) Thanks for help! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to restrict lenght of entry widget to certain number of character

2005-06-02 Thread Peter Otten
Michael Onfrek wrote: > I'm playing with entry again and trying to restrict length of entry > widget to certain number of character, so users cannot enter more > character into it. Any ideas? import Tkinter as tk root = tk.Tk() var = tk.StringVar() max_len = 5 def on_write(*args): s = var.ge

Re: How to restrict lenght of entry widget to certain number of character

2005-05-30 Thread Michael Onfrek
I'm using tkinter -- http://mail.python.org/mailman/listinfo/python-list

Re: How to restrict lenght of entry widget to certain number of character

2005-05-30 Thread flupke
Michael Onfrek wrote: > Hi! > I'm playing with entry again and trying to restrict length of entry > widget to certain number of character, so users cannot enter more > character into it. Any ideas? > Reg. Michael Onfrek > What widget set are you talking about, wxPython pygtk, tkinter? In wxPytho