From: Armin Roehrl Date: 2001-12-08T07:57:38+09:00 Subject: [ruby-talk:27874] Re: Ruby Tk question On Friday 07 December 2001 23:19, you wrote: > Does anyone have an example showing how to set up labels or text to appear > in italic using Tk? Any help is greatly appreciated. > > Michael Davis > Database Architect and Senior Software Engineer, Seva Inc. > Email: mdavis@sevainc.com Hello, try specifying it with font 'italic' TkcText.new(c, 260, 80, "text"=>"Canvas", "font"=>["verdana", 10, "bold"]) or require 'tk' root = TkRoot.new { title "Ex1" } TkLabel.new(root) { text 'Hello, World!' font 'fixed' pack { padx 15 ; pady 15; side 'left' } } Tk.mainloop Maybe also look at the TK-Demo in the RAA; bye, A ----------------------------------------------- Armin Roehrl, http://www.approximity.com