diff options
Diffstat (limited to 'ext/tk/lib/tk/text.rb')
-rw-r--r-- | ext/tk/lib/tk/text.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/tk/lib/tk/text.rb b/ext/tk/lib/tk/text.rb index acdc905fe0..c05e3f03ad 100644 --- a/ext/tk/lib/tk/text.rb +++ b/ext/tk/lib/tk/text.rb @@ -120,6 +120,12 @@ class TkText<TkTextWin val end + def clear + tk_send_without_enc('delete', "1.0", 'end') + self + end + alias erase clear + def _addcmd(cmd) @cmdtbl.push cmd end |