/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class MyText(Text): def __init__(self, master, **kw): apply(Text.__init__, (self, master), kw) self.bind("<Return>", lambda e: "break")