Simplified constructor with not so much parameters.
Message type is Gtk::MESSAGE_QUESTION, the flags will be Gtk::DIALOG_MODAL if the parent is set. Only one button, OK, will be visible.
<?php require_once 'Gtk2/EntryDialog.php'; $id = Gtk2_EntryDialog::new_simple( 'What\'s your name?', //the message 'Don\'t know' //The default text ); $answer = $id->run(); $id->destroy(); if ($answer == Gtk::RESPONSE_OK) { echo 'The name is: '; var_dump($id->get_text()); } else { echo "You cancelled\r\n"; } ?> |
Message to display.
Default text for the entry.
Parent window (can be null).
Пред. | Начало | След. |
constructor Gtk2_EntryDialog() | Уровень выше | Gtk2_EntryDialog::get() |
HIVE: All information for read only. Please respect copyright! |