Methods
- A
- N
Class Public methods
new(base)
Link
@@font = 'Helvetica 14' @@font = 'Courier 12' @@font = 'clearlyu 16' @@font = 'fixed 12' @@font = 'Times 12' @@font = 'Newspaper 12' @@font = '{New century schoolbook} 12'
Instance Public methods
add_sample(lang, *args)
Link
# File ext/tk/sample/demos-en/unicodeout.rb, line 73 def add_sample(lang, *args) sample_txt = Tk::UTF8_String(args.join('')) l = TkLabel.new(self, :font=>@@font, :text=>lang+':', :anchor=>:nw, :pady=>0) #s = TkLabel.new(self, :font=>@@font, :text=>sample_txt, s = TkLabel.new(self, :font=>TkFont.new(@@font), :text=>sample_txt, :anchor=>:nw, :width=>30, :pady=>0) Tk.grid(l, s, :sticky=>:ew, :pady=>0) l.grid_config(:padx, '1m') end