'Tkinter Scale border color
I'm making a tkinter app for work that involves cropping images. I use sliders to allow a user to crop a specific part of an image and save that image. My problem right now is that my sliders have a white border that isn't matching up with the background of the window.
My App Currently:
So what i'm trying to do is get rid of these borders.
My Code
self.left = Scale(main, label='left', orient='h',
from_=0, to=400, length=400, command=self.onSliderLeft, bg='#2E4970', fg='white', bd=0, troughcolor='grey')
self.left.grid(row=4, column=0, columnspan=2, rowspan=2)
self.right = Scale(main, label='right', orient='h',
from_=0, to=400, length=400, command=self.onSliderRight, bg='#2E4970', fg='white', bd=0, troughcolor='grey')
self.right.grid(row=6, column=0, columnspan=2, rowspan=2)
self.top = Scale(main, label='top', orient='v',
from_=0, to=400, length=400, command=self.onSliderTop, bg='#2E4970', fg='white', bd=0, troughcolor='grey')
self.top.grid(row=4, column=2, rowspan=4)
self.bottom = Scale(main, label='bottom', orient='v',
from_=0, to=400, length=400, command=self.onSliderBottom, bg='#2E4970', fg='white', bd=0, troughcolor='grey')
self.bottom.grid(row=4, column=3, rowspan=4)
Comment: I know that tkinter's Scale() has a bd (border) attribute, but even at 0 it still shows up.
Thanks for the help :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

