diff options
Diffstat (limited to 'ext/tk/lib/tkextlib/iwidgets/finddialog.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/finddialog.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ext/tk/lib/tkextlib/iwidgets/finddialog.rb b/ext/tk/lib/tkextlib/iwidgets/finddialog.rb new file mode 100644 index 0000000000..a161c3c2a4 --- /dev/null +++ b/ext/tk/lib/tkextlib/iwidgets/finddialog.rb @@ -0,0 +1,29 @@ +# +# tkextlib/iwidgets/finddialog.rb +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# + +require 'tk' +require 'tkextlib/iwidgets.rb' + +module Tk + module Iwidgets + class Finddialog < Tk::Iwidgets::Dialogshell + end + end +end + +class Tk::Iwidgets::Finddialog + TkCommandNames = ['::iwidgets::finddialog'.freeze].freeze + WidgetClassName = 'Finddialog'.freeze + WidgetClassNames[WidgetClassName] = self + + def clear + tk_call(@path, 'clear') + self + end + + def find + tk_call(@path, 'find') + end +end |