Skip to content

Commit

Permalink
Restructure examples to ease getting started
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Jul 8, 2017
1 parent e9e5acf commit 87577ad
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 45 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/form.php → examples/05-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$loop = Factory::create();
$launcher = new Launcher($loop);

$form = new FormsDialog($launcher);
$form = new FormsDialog();
$form->setWindowIcon('info');
$form->setText('Enter user information');

Expand Down
2 changes: 1 addition & 1 deletion examples/menu.php → examples/06-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$loop = Factory::create();

$launcher = new Launcher($loop);
$builder = new Builder($launcher);
$builder = new Builder();

$main = function() use (&$main, $builder, $launcher) {
$menu = $builder->listMenu(array('Introduction', 'Tests', 'License', 'Bugs / Issues'), 'Main menu');
Expand Down
3 changes: 3 additions & 0 deletions examples/notification.php → examples/10-notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

$n = 0;
$loop->addPeriodicTimer(10.0, function ($timer) use ($zen, &$n) {
static $icons = array('error', 'warning', 'info', '');
$zen->setIcon($icons[array_rand($icons)]);

$zen->setMessage('Hi' . ++$n);
});

Expand Down
File renamed without changes.
43 changes: 0 additions & 43 deletions examples/progress.php

This file was deleted.

0 comments on commit 87577ad

Please sign in to comment.