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] Why does the image for the button not appear? finndude 4 324 Oct-21-2021, 06:41 PM
Last Post: deanhystad
  Creating a function interrupt button tkinter AnotherSam 2 488 Oct-07-2021, 02:56 PM
Last Post: AnotherSam
  [Tkinter] Have tkinter button toggle on and off a continuously running function AnotherSam 5 523 Oct-01-2021, 05:00 PM
Last Post: Yoriz
  [Tkinter] image inside button rwahdan 4 834 Jul-12-2021, 08:49 PM
Last Post: deanhystad
  How to redraw an existing image to a different image TkInter zazas321 6 988 Jul-08-2021, 07:44 PM
Last Post: deanhystad
  tkinter showing image in button rwahdan 3 1,387 Jun-16-2021, 06:08 AM
Last Post: Yoriz
  how to resize image in canvas tkinter samuelmv30 2 6,259 Feb-06-2021, 03:35 PM
Last Post: joe_momma
  tkinter python button position problem Nick_tkinter 3 1,258 Jan-31-2021, 05:15 AM
Last Post: deanhystad
  TKinter restarting the mainloop when button pressed zazas321 7 4,256 Jan-26-2021, 06:38 AM
Last Post: zazas321
  tkinter touchscreen scrolling - button press makes unwanted scrolling nanok66 1 1,369 Dec-28-2020, 10:00 PM
Last Post: nanok66

Forum Jump:

User Panel Messages

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