2 # tkextlib/iwidgets/scrolledhtml.rb
3 # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
7 require 'tkextlib/iwidgets.rb'
11 class Scrolledhtml < Tk::Iwidgets::Scrolledtext
16 class Tk::Iwidgets::Scrolledhtml
17 TkCommandNames = ['::iwidgets::scrolledhtml'.freeze].freeze
18 WidgetClassName = 'Scrolledhtml'.freeze
19 WidgetClassNames[WidgetClassName] = self
24 private :__boolval_optkeys
27 super() << 'fontname' << 'link' << 'alink' << 'textbackground'
29 private :__strval_optkeys
32 super() << 'fixedfont'
34 private :__font_optkeys
37 tk_call(@path, 'import', href)
42 tk_call(@path, 'import', '-link', href)
50 def render(htmltext, workdir=None)
51 tk_call(@path, 'render', htmltext, workdir)
56 tk_call(@path, 'title')