You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://packagist.org/packages/clue/zenity-react)
5
5
6
6
Zenity allows you to build graphical desktop (GUI) applications in PHP, built on top of [ReactPHP](https://reactphp.org/).
@@ -69,10 +69,12 @@ $entry->setEntryText(getenv('USER')); // prefill with current user
69
69
70
70
$launcher->launch($entry)->then(function ($name) use ($launcher) {
71
71
$launcher->launch(new InfoDialog('Welcome to zenity-react, ' . $name .'!'));
72
+
}, function (Exception $e) {
73
+
echo 'Error: ' . $e->getMessage() . PHP_EOL;
72
74
});
73
75
```
74
76
75
-
Looking for more examples? Take a look at the [examples](examples) folder.
77
+
Looking for more examples? Take a look at the [examples](examples/) folder.
76
78
77
79
## Usage
78
80
@@ -152,6 +154,8 @@ Loop::addTimer(3.0, function () use ($zen) {
$launcher->launch($builder->confirmLicense(__DIR__ . '/../README.md', 'I have read the README.md file'))->then(function ($checked) use ($main, $launcher) {
0 commit comments