Python Forum
Simple Button click on image file to create action?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Button click on image file to create action?
#5
(Mar-27-2019, 02:40 AM)Larz60+ Wrote: Here's one with built in tkinter GUI package (I wrote using python 3.7.2)

You're a lifesaver. I changed the path to point to my own png directory and it works on my Ubuntu system. I'll try it on my Raspberry Pi then edit it to replace the print statement to do a Popen to execute a command. You saved me a lot of time. Thanks!
Reply


Messages In This Thread
RE: Simple Button click on image file to create action? - by jpezz - Mar-27-2019, 10:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  tkinter - touchscreen, push the button like click the mouse John64 5 845 Jan-06-2024, 03:45 PM
Last Post: deanhystad
  Figure Gets Larger Every time I click a show button joshuagreineder 2 1,328 Aug-11-2022, 06:25 AM
Last Post: chinky
  simple tkinter question function call not opening image gr3yali3n 5 3,427 Aug-02-2022, 09:13 PM
Last Post: woooee
  [Tkinter] Why does the image for the button not appear? finndude 4 2,091 Oct-21-2021, 06:41 PM
Last Post: deanhystad
  looking for scripts that do simple image display Skaperen 10 4,253 Sep-13-2021, 05:35 PM
Last Post: FullOfHelp
  [Tkinter] image inside button rwahdan 4 7,057 Jul-12-2021, 08:49 PM
Last Post: deanhystad
  tkinter showing image in button rwahdan 3 5,617 Jun-16-2021, 06:08 AM
Last Post: Yoriz
  [Tkinter] Modify Class on Button Click KDog 4 3,950 May-11-2021, 08:43 PM
Last Post: KDog
  How to create a simple GUI GRS26 7 3,633 Mar-27-2021, 02:38 PM
Last Post: FernandoCabral
  tkinter button image Nick_tkinter 4 4,036 Mar-04-2021, 11:33 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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