Method: Tk::BWidget::MessageDlg#create

Defined in:
lib/tkextlib/bwidget/messagedlg.rb

#createObject



186
187
188
189
190
191
# File 'lib/tkextlib/bwidget/messagedlg.rb', line 186

def create
  # return the index of the pressed button, or nil if it is destroyed
  ret = num_or_str(tk_call(self.class::TkCommandNames[0],
                           @path, *hash_kv(@keys)))
  (ret < 0)? nil: ret
end