Gtk2_EntryDialog
[ class tree: Gtk2_EntryDialog ] [ index: Gtk2_EntryDialog ] [ all elements ]

Source for file simple.php

Documentation is available at simple.php

  1. <?php
  2. /**
  3. *   Simple Gtk2_EntryDialog example
  4. *
  5. *   @author Christian Weiske <cweiske@php.net>
  6. */
  7. require_once 'Gtk2/EntryDialog.php';
  8.  
  9.     'What\'s your name?',       //the message
  10.     'Don\'t know'               //The default text
  11. );
  12.  
  13. $answer $id->run();
  14. $id->destroy();
  15. if ($answer == Gtk::RESPONSE_OK{
  16.     echo 'The name is: ';
  17.     var_dump($id->get_text());
  18. else {
  19.     echo "You cancelled\r\n";
  20. }
  21. ?>

Documentation generated on Mon, 11 Mar 2019 14:48:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.