Skip to content

Emulator crashes when run interactively from the Python shell #1

@tompreston

Description

@tompreston

The Pi Face emulator and the Python shell both crash when trying to initialise the emulator interactively.

$ python
>>> import piface.emulator as emulator
>>> emulator.init()
>>> 

The emulator pops up but it doesn't respond to user input, same with the shell.

This works though:

$ python -c "import piface.emulator as emulator;
from time import sleep
emulator.init();
led1 = emulator.LED(1);
led1.turn_on();
sleep(2);
led1.turn_off()"

I think this has something to do with the threaded nature of emulator and the Python shell not liking it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions