1# 2# tkextlib/iwidgets/canvasprintdialog.rb 3# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) 4# 5 6require 'tk' 7require 'tkextlib/iwidgets.rb' 8 9module Tk 10 module Iwidgets 11 class Canvasprintdialog < Tk::Iwidgets::Dialog 12 end 13 end 14end 15 16class Tk::Iwidgets::Canvasprintdialog 17 TkCommandNames = ['::iwidgets::canvasprintdialog'.freeze].freeze 18 WidgetClassName = 'Canvasprintdialog'.freeze 19 WidgetClassNames[WidgetClassName] ||= self 20 21 def get_output 22 tk_call(@path, 'getoutput') 23 end 24 25 def print 26 bool(tk_call(@path, 'print')) 27 end 28 29 def refresh 30 tk_call(@path, 'refresh') 31 self 32 end 33 34 def set_canvas(win) 35 tk_call(@path, 'setcanvas', win) 36 self 37 end 38end 39