Method: BWidget_Demo#update_font
- Defined in:
- sample/tkextlib/bwidget/demo.rb
#update_font(newfont) ⇒ Object
200 201 202 203 204 205 206 207 208 209 |
# File 'sample/tkextlib/bwidget/demo.rb', line 200 def update_font(newfont) root = Tk.root root[:cursor] = 'watch' if newfont != '' && DemoVar.font != newfont DemoVar._wfont[:font] = newfont DemoVar.notebook[:font] = newfont DemoVar.font = newfont end root[:cursor] = '' end |