Posted By

blucehu on 01/30/08


Tagged

event text bind


Versions (?)

通过事件 bind 更改 Text 的默认行为


 / Published in: Python
 

  1. class MyText(Text):
  2. def __init__(self, master, **kw):
  3. apply(Text.__init__, (self, master), kw)
  4. self.bind("<Return>", lambda e: "break")

Report this snippet  

You need to login to post a comment.