Skip to content

Commit

Permalink
Merge pull request #15 from RPi-Distro/resize-pixels
Browse files Browse the repository at this point in the history
Fix #14, Fix #9
  • Loading branch information
waveform80 committed Nov 3, 2016
2 parents e07f364 + 660ff75 commit 3c9daf6
Show file tree
Hide file tree
Showing 10 changed files with 251 additions and 93 deletions.
2 changes: 1 addition & 1 deletion debian/control
Expand Up @@ -54,7 +54,7 @@ Description: Documentation for the Raspberry Pi Sense HAT emulator.
Package: sense-emu-tools
Architecture: all
Section: devel
Depends: ${misc:Depends}, ${python3:Depends}, python3-sense-emu (>= ${binary:Version}), python3-gi, idle3
Depends: ${misc:Depends}, ${python3:Depends}, python3-sense-emu (>= ${binary:Version}), python3-gi, python3-gi-cairo, idle3
Description: Emulator for the Raspberry Pi Sense HAT.
sense-emu is an emulator of the Raspberry Pi Sense HAT which runs on multiple
platforms, and provides an emulation of each sensor on the HAT, along with the
Expand Down
Binary file modified sense_emu/gschemas.compiled
Binary file not shown.
287 changes: 219 additions & 68 deletions sense_emu/gui.py

Large diffs are not rendered by default.

22 changes: 4 additions & 18 deletions sense_emu/main_window.ui
Expand Up @@ -22,7 +22,7 @@ Author: Dave Jones
-->
<interface domain="sense-emu">
<requires lib="gtk+" version="3.4"/>
<requires lib="gtk+" version="3.8"/>
<!-- interface-license-type gplv2 -->
<!-- interface-name sense_emu_gui -->
<!-- interface-description An emulator for the Raspberry Pi Sense HAT -->
Expand Down Expand Up @@ -89,6 +89,7 @@ Author: Dave Jones
<object class="GtkBox" id="screen_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
Expand All @@ -103,22 +104,6 @@ Author: Dave Jones
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkImage" id="screen_image">
<property name="width_request">265</property>
<property name="height_request">265</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="vexpand">True</property>
<property name="stock">gtk-missing-image</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkBox" id="rotation_box">
<property name="visible">True</property>
Expand Down Expand Up @@ -184,7 +169,8 @@ Author: Dave Jones
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
<property name="pack_type">end</property>
<property name="position">1</property>
</packing>
</child>
</object>
Expand Down
18 changes: 18 additions & 0 deletions sense_emu/org.raspberrypi.sense_emu_gui.gschema.xml
Expand Up @@ -40,5 +40,23 @@
sufficient for most emulation purposes).</description>
<range min="1" max="60" />
</key>
<key name="window-width" type="i">
<default>-1</default>
<summary>The width of the main window</summary>
<description>Stores the width of the main window between
invocations.</description>
</key>
<key name="window-height" type="i">
<default>-1</default>
<summary>The height of the main window</summary>
<description>Stores the height of the main window between
invocations.</description>
</key>
<key name="window-maximized" type="b">
<default>false</default>
<summary>The maximized state of the main window</summary>
<description>Stores whether or not the main window is
maximized.</description>
</key>
</schema>
</schemalist>
Binary file modified sense_emu/orientation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions sense_emu/orientation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sense_emu/pixel_grid.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sense_emu/sense_emu.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions sense_emu/sense_emu.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3c9daf6

Please sign in to comment.