piface / pifacedigital-emulator

An emulator for the PiFace Digital board.
23 stars 11 forks source link

Emulator does not light up when buttons pressed #6

Open fbrier opened 8 years ago

fbrier commented 8 years ago

The emulator is not "lighting" the buttons as described in the Install PiFace Digital Software documentation. The hardware is the PiFace Digital 2 board. Raspbian was updated/upgraded as per the directions. The hardware appears to be working. When I ran the "Reading an input" program, Python is properly reporting the state of the button.

Initially, I was getting an error saying, "QGtkStyle was unable to detect the current GTK+ theme." Thinking that perhaps the missing style was preventing the button image color change, I created a /home/pi/.gtkrc-2.0 file containing the line:

gtk-theme-name="Clearlooks"

and added the line:

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

to the /home/pi/.bashrc file. The startup error went away, but no change occurred in the application. Starting the emulator, generates a series of warning messages, but those are also displayed when I start leafpad.

(python3:2625): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-button-images after class was initialised
(python3:2625): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-label-select-on-focus after class was initialised
(python3:2625): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-can-change-accels after class was initialised
(python3:2625): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-menu-popup-delay after class was initialised
(python3:2625): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-menu-popdown-delay after class was initialised
(python3:2625): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-entry-select-on-focus after class was initialised
(python3:2625): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-entry-password-hint-timeout after class was initialised
(python3:2625): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-scrolled-window-placement after class was initialised
(python3:2625): GLib-GObject-WARNING **: Attempt to add property GtkSettings::gtk-menu-bar-popup-delay after class was initialised

Selecting the Output Control buttons does cause the PiFace to trip the relays and turn on the LEDs. The correct image version of the PiFace Digital is shown - version 2. This appears to be the only problem. Is this a bug? Or am I missing some piece of configuration? Thank you.