Method: TkHTML_File_Viewer#sel_load
- Defined in:
- sample/tkextlib/tkHTML/ss.rb
#sel_load ⇒ Object
245 246 247 248 249 250 251 252 253 254 255 256 |
# File 'sample/tkextlib/tkHTML/ss.rb', line 245 def sel_load filetypes = [ ['Html Files', ['.html', '.htm']], ['All Files', '*'] ] f = Tk.getOpenFile(:initialdir=>@last_dir, :filetypes=>filetypes) if f != '' load_file(f) @last_dir = File.dirname(f) end end |