Python Forum
tkinter button image
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tkinter button image
#1
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

Thanks
Reply
#2
Have you tired using bd = 0 to remove the border around the button?
Reply
#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
#4
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
Reply
#5
Its the border. Bash is right, set the border width to zero
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to resize image in canvas tkinter samuelmv30 2 1,197 Feb-06-2021, 03:35 PM
Last Post: joe_momma
  tkinter python button position problem Nick_tkinter 3 570 Jan-31-2021, 05:15 AM
Last Post: deanhystad
  TKinter restarting the mainloop when button pressed zazas321 7 840 Jan-26-2021, 06:38 AM
Last Post: zazas321
  tkinter touchscreen scrolling - button press makes unwanted scrolling nanok66 1 404 Dec-28-2020, 10:00 PM
Last Post: nanok66
  Latex image too big on tkinter using sympy 4096 1 465 Nov-05-2020, 08:05 AM
Last Post: DPaul
Photo Tkinter TEXT background image _ShevaKadu 5 1,820 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  tkinter: Image to Label Maryan 10 864 Oct-29-2020, 01:48 PM
Last Post: joe_momma
  Tkinter - How can I remove the background borders from ttk.Button? TurboC 4 2,785 Oct-18-2020, 10:58 AM
Last Post: TurboC
  tkinter | Button color text on Click Maryan 2 589 Oct-09-2020, 08:56 PM
Last Post: Maryan
  Scrollable big image in a window (TKinter) Prospekteur 3 590 Sep-14-2020, 03:06 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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