Python Forum
looking for scripts that do simple image display
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
looking for scripts that do simple image display
#11
import PySimpleGUI as sg

sg.Window('My image window',[[sg.Image(sg.EMOJI_BASE64_HAPPY_JOY)]], auto_close=True, auto_close_duration=3).read()
[Image: 133131008-a75e8e17-39f1-42bc-89a2-4c7efb1f51b7.gif]

This line of code will display an image for 3 seconds.

You can replace the EMOJI with a base64 encoded PNG/GIF or a filename that is a PNG or GIF file.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Display Selected Image from Directory and Resize it EchoLi 0 2,311 Oct-02-2019, 06:54 PM
Last Post: EchoLi
  Refresh image in label after every 1s using simple function jenkins43 1 3,572 Jul-28-2019, 02:49 PM
Last Post: Larz60+
  Simple Button click on image file to create action? jpezz 4 3,227 Mar-27-2019, 10:08 PM
Last Post: jpezz
  Display and update the label text which display the serial value jenkins43 5 5,135 Feb-04-2019, 04:36 AM
Last Post: Larz60+
  Display more than one button in GUI to display MPU6000 Sensor readings barry76 4 1,763 Jan-05-2019, 01:48 PM
Last Post: wuf
  Display image in tkinter dan789 9 22,946 Dec-09-2018, 08:17 PM
Last Post: dan789
  Tkinter Image Display Weird Tearing Upon Transforming Emerest 6 4,184 Sep-01-2018, 11:46 PM
Last Post: Emerest

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020