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
  simple tkinter question function call not opening image gr3yali3n 5 3,430 Aug-02-2022, 09:13 PM
Last Post: woooee
  [PyQt] Cannot Display Image after Selecting Image bintangkecil 4 2,575 Jun-12-2022, 08:18 AM
Last Post: Axel_Erfurt
  [Tkinter] Display Selected Image from Directory and Resize it EchoLi 0 4,238 Oct-02-2019, 06:54 PM
Last Post: EchoLi
  Refresh image in label after every 1s using simple function jenkins43 1 5,491 Jul-28-2019, 02:49 PM
Last Post: Larz60+
  Simple Button click on image file to create action? jpezz 4 6,868 Mar-27-2019, 10:08 PM
Last Post: jpezz
  Display and update the label text which display the serial value jenkins43 5 9,068 Feb-04-2019, 04:36 AM
Last Post: Larz60+
  Display more than one button in GUI to display MPU6000 Sensor readings barry76 4 3,884 Jan-05-2019, 01:48 PM
Last Post: wuf
  Display image in tkinter dan789 9 27,382 Dec-09-2018, 08:17 PM
Last Post: dan789
  Tkinter Image Display Weird Tearing Upon Transforming Emerest 6 8,349 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