

Task

Display the string       Goodbye, World!       on a GUI object   (alert box, plain window, text area, etc.).



Related task

   Hello world/Text


 
@args -pkg:gtk-sharp-2.0
 
use Gtk
 
class MainProgram
  def main
    Application.init
    dialog = MessageDialog(nil,
      DialogFlags.DestroyWithParent,
      MessageType.Info, 
      ButtonsType.Ok,
      "Goodbye, World!")
    dialog.run
    dialog.destroy
 