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
  Tkinter: An image and label are not appearing. emont 7 406 Mar-21-2024, 03:00 PM
Last Post: deanhystad
  [Tkinter] TKinter Remove Button Frame Nu2Python 8 818 Jan-16-2024, 06:44 PM
Last Post: rob101
  tkinter - touchscreen, push the button like click the mouse John64 5 746 Jan-06-2024, 03:45 PM
Last Post: deanhystad
  Centering and adding a push button to a grid window, TKinter Edward_ 15 4,382 May-25-2023, 07:37 PM
Last Post: deanhystad
  My Background Image Is Not Appearing (Python Tkinter) HailyMary 2 3,977 Mar-14-2023, 06:13 PM
Last Post: deanhystad
  simple tkinter question function call not opening image gr3yali3n 5 3,303 Aug-02-2022, 09:13 PM
Last Post: woooee
  [Tkinter] Tkinter don't change the image DQT 2 1,560 Jul-22-2022, 10:26 AM
Last Post: menator01
  Can't get tkinter button to change color based on changes in data dford 4 3,363 Feb-13-2022, 01:57 PM
Last Post: dford
  [Tkinter] Why does the image for the button not appear? finndude 4 2,047 Oct-21-2021, 06:41 PM
Last Post: deanhystad
  Creating a function interrupt button tkinter AnotherSam 2 5,418 Oct-07-2021, 02:56 PM
Last Post: AnotherSam

Forum Jump:

User Panel Messages

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