From: email55555@... Date: 2005-09-15T00:21:34+09:00 Subject: Re: TkDialog question FYI. There maybe a bug for dialog.name. If a dialog does not show up yet, the value will be nil, but calling name will give you exception. Example: dialog = TkDialog2.new(:title=>'Hello', :message=>'Exit?', :buttons=>['Yes', 'No'], :default=>1) # TkDialog2 will not showing at initialize time puts dialog.value # print nil puts dialog.name # exception... My suggestion is modify dialog.rb on the line # 202 def name @buttons[@val] end by def name @val.nil? ? nil : @buttons[@val] end