-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path05-form.php
More file actions
22 lines (17 loc) · 625 Bytes
/
05-form.php
File metadata and controls
22 lines (17 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
require __DIR__ . '/../vendor/autoload.php';
$launcher = new Clue\React\Zenity\Launcher();
$form = new Clue\React\Zenity\Dialog\FormsDialog();
$form->setWindowIcon('info');
$form->setText('Enter user information');
$form->addEntry('Name');
$form->addPassword('Password');
$form->addCalendar('Birthday');
//$form->addList('Group', array('Admin', 'User', 'Random'));
$form->addEntry('Nickname');
$form->addList('Gender', array('Male', 10, 'Female', 0), array('Gender', 'Number'));
$launcher->launch($form)->then(function($result) {
var_dump('result', $result);
}, function() {
var_dump('form canceled');
});