Saturday, 15 June 2013

Using python on RPi to start gpicview & display Image -


I am using Raspberry B + with raspberry to get this reference to use GPicView () Afterwards, I managed to get a JPG image to display using LXTerminal with a 'sudo python jukebox.py -g' command, but the following errors appeared on LXTerminal:

(Gpicview: 3125): GLib-GObject-Warning **: Try adding GtkSettings to property: gtk-scrolled-window- Placement Class Left Was started

(gpicview: 3125): GLib-GObject-WARNING **: Try adding property GtkSettings: gtk-button-images was started after class

< P> (gpicview: 3125): GLib-GObject-WARNING **: Attempt to add property GtkSettings: Gtk-label-select-on-focus was started after class

Python Code:

oxmp = popen (['gpicview', 'media /fond.jpg'])

I used 'oxmp' Because I have to show a video using omxplayer without any error Was used.

GPicView is completely open but I think that there is a way to ensure that happens.

I am a newbie in Python but an amateur in programming & amp; Want to use the GPIO to control the "Q & A" screen display. The idea is that the RPI & amp; After the screen is rebooted, the main screen is switched on, the initial image will remain on the screen until a visitor clicks a button for any question. The images are & amp; Based on the answer, videos related to each question After the inactivity of 30 the initial image will be displayed.

I believe that I can control performance on Python but appreciate the indicator:

  1. The correct command for gpicview is displayed in full screen without errors;
  2. After boot, an initial command has ended that will trigger the Python program to start & amp; Display the opening image - I have just seen a link that I will try;
  3. A recharging system for a small battery so that, when the switch turns off, the RPI will be automatically shut down. I've seen PiPresent-on the next, but stuck.

    Thanks, Advance, Walter for any help


No comments:

Post a Comment