Python Forum
tkinter button image
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tkinter button image
#3
What do you want to achieve? Do you just want to change the white part to some other color, or do you want to move it around. Can you edit the image file?

I would edit the image file using some sort of paint program. I would fill the white part with blue, and set the transparency layer so that the only opaque part is the blue oval. Then you could move the white part around by creating a filled circle (or using another image) and drawing over the top of the blue oval.
Reply


Messages In This Thread
tkinter button image - by Nick_tkinter - Mar-04-2021, 08:33 PM
RE: tkinter button image - by BashBedlam - Mar-04-2021, 08:49 PM
RE: tkinter button image - by deanhystad - Mar-04-2021, 09:40 PM
RE: tkinter button image - by Nick_tkinter - Mar-04-2021, 11:15 PM
RE: tkinter button image - by deanhystad - Mar-04-2021, 11:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] image inside button rwahdan 4 246 Jul-12-2021, 08:49 PM
Last Post: deanhystad
  How to redraw an existing image to a different image TkInter zazas321 6 257 Jul-08-2021, 07:44 PM
Last Post: deanhystad
  tkinter showing image in button rwahdan 3 360 Jun-16-2021, 06:08 AM
Last Post: Yoriz
  how to resize image in canvas tkinter samuelmv30 2 2,845 Feb-06-2021, 03:35 PM
Last Post: joe_momma
  tkinter python button position problem Nick_tkinter 3 809 Jan-31-2021, 05:15 AM
Last Post: deanhystad
  TKinter restarting the mainloop when button pressed zazas321 7 2,083 Jan-26-2021, 06:38 AM
Last Post: zazas321
  tkinter touchscreen scrolling - button press makes unwanted scrolling nanok66 1 768 Dec-28-2020, 10:00 PM
Last Post: nanok66
  Latex image too big on tkinter using sympy 4096 1 776 Nov-05-2020, 08:05 AM
Last Post: DPaul
Photo Tkinter TEXT background image _ShevaKadu 5 2,721 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  tkinter: Image to Label Maryan 10 1,326 Oct-29-2020, 01:48 PM
Last Post: joe_momma

Forum Jump:

User Panel Messages

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