Method: TkHTML_File_Viewer#run_applet
- Defined in:
- sample/tkextlib/tkHTML/ss.rb
#run_applet(size, w, arglist) ⇒ Object
This routine is called to run an applet
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'sample/tkextlib/tkHTML/ss.rb', line 156 def run_applet(size, w, arglist) applet_arg.value = Hash[*simplelist(arglist)] return unless @applet_arg.key?('src') src = @html.remove(@applet_arg['src']) @applet_arg['window'] = w @applet_arg['fontsize'] = size begin Tk.load_tclscript(src) rescue => e puts "Applet error: #{e.}" end end |