# File tst/tst_locana.rb, line 130 def tst_fonts() Lwindow.new(:wTestFonts, :text=>'Test Fonts and TabGroups') { tabgroup(:tg0, :padx=>5, :pady=>5, :sticky=>:news) { tabpage(:tpTestFonts_16, :text => 'Test size=16', :sticky=>:news, :help=>'shows size=16') { tst_font(16, nil, :center) } tabpage(:tpTestFonts_10, :text => 'Test size=10', :sticky=>:news, :help=>'shows size=10, :left justified') { tst_font(10, nil, :left) } tabpage(:tpTestFonts_10_bold_italic, :text => 'Test bold & italic', :sticky=>:news, :help=>'shows size=10 in bold and italic') { tst_font(10, [:bold, :italic], :right) } } button(:b_ok, :sticky=>:se, :padx=>10, :pady=>10, :text=>'&Ok') # make sure this starts with the keyboard focus b_ok.on_click = "close()" # this button will close the form } end