Skip to content

Commit d8adc24

Browse files
authored
Merge pull request #26 from astro-pi/thonnyise
Use Thonny to open examples instead of IDLE
2 parents c6b98c6 + 72e0276 commit d8adc24

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Description: Documentation for the Raspberry Pi Sense HAT emulator.
6363
Package: sense-emu-tools
6464
Architecture: all
6565
Section: devel
66-
Depends: ${misc:Depends}, ${python3:Depends}, python3-sense-emu (>= ${binary:Version}), python3-gi, python3-gi-cairo, idle3
66+
Depends: ${misc:Depends}, ${python3:Depends}, python3-sense-emu (>= ${binary:Version}), python3-gi, python3-gi-cairo, python3-thonny
6767
Description: Emulator for the Raspberry Pi Sense HAT.
6868
sense-emu is an emulator of the Raspberry Pi Sense HAT which runs on multiple
6969
platforms, and provides an emulation of each sensor on the HAT, along with the

sense_emu/gui.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,7 @@ def on_example(self, action, param):
266266
# right but it's also cross-platform and cross-version compatible
267267
# (works on Py 2.x on Windows and UNIX, and Py 3.x on Windows and UNIX;
268268
# almost any other variant fails for some combination)
269-
subprocess.Popen([
270-
sys.executable,
271-
'-c', 'from idlelib.PyShell import main; main()',
272-
filename])
269+
subprocess.Popen(["thonny", filename])
273270

274271
def on_play(self, action, param):
275272
open_dialog = Gtk.FileChooserDialog(

0 commit comments

Comments
 (0)