Python Forum
tkinter button image
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tkinter button image
Hello.I have the following image inside a button and I want to cut the regional white color.How can I do it?
I also have (activaforefound = activebackfround = bg) of button = "black" = window color
See icon

Have you tired using bd = 0 to remove the border around the button?
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.
This white rectangular is not from my image but from the button.I also tried bd =0 but nothing happened. I just want to remove it.I don't want to see this white rectangular
Its the border. Bash is right, set the border width to zero

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

Forum Jump:

User Panel Messages

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