Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen freezing #41

Closed
marabesi opened this issue Apr 8, 2016 · 6 comments
Closed

Screen freezing #41

marabesi opened this issue Apr 8, 2016 · 6 comments

Comments

@marabesi
Copy link

marabesi commented Apr 8, 2016

Hello guys,

I've been using Ubuntu for a while and I tried to run the code shown in README.md file but my screen just freeze when I run it.

<?php
require 'vendor/autoload.php';

use Gui\Application;
use Gui\Components\Button;

$application = new Application();

$application->on('start', function() use ($application) {
    $button = (new Button())
        ->setLeft(40)
        ->setTop(100)
        ->setWidth(200)
        ->setValue('Look, I\'m a button!');

    $button->on('click', function() use ($button) {
        $button->setValue('Look, I\'m a clicked button!');
    });
});

$application->run();

My O.S : Ubuntu 14.04

any ideas ?

@reisraff
Copy link
Collaborator

reisraff commented Apr 8, 2016

which is your php version? and the window appears?

@ricardofontanelli
Copy link

@marabesi I'm running it ok in my Ubuntu Desktop 14.04 LTS. Is it showing you the execution log on terminal?

@marabesi
Copy link
Author

marabesi commented Apr 8, 2016

my php version is 5.5.9

@pokemaobr
Copy link
Contributor

Requirements

The following PHP versions are supported:

PHP 5.6
PHP 7
HHVM
And OS:

Linux x64
Windows x64
Mac OSX (tested on 10.10.x and 10.11.x)

@marabesi
Copy link
Author

marabesi commented Apr 8, 2016

@ricardofontanelli I can't access my terminal after execute the php script. I have to reboot to get my machine working again , thought, I haven't tried php 7. This error can occur because my php version is old

@marabesi
Copy link
Author

marabesi commented Apr 8, 2016

@pokemaobr yeap that is it, my bad. Thanks folks : D

@marabesi marabesi closed this as completed Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants