New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing border in slider widget #21
Comments
So you want to remove the white border around the slider? When you create the Slider with no arguments at all there is no border because the border_color argument is None by default and so the border_color is the color of the frame behind the slider. And when the slider gets a white border when you call your configure method, then you set the border_color to white in your configure method. But I can't do anything without seeing your code. |
here is the code:
|
Any update? |
I have no idea why youre getting a white border, just use the Slider as it is currently on Github, then there shouldn't be a change of the border color, it has a config function now. |
still same. no change |
If you still have problems you can .zip your whole project and add it to your comment, so I can run it myself, otherwise I will close this issue because its not reproducible for me. |
here is the repo |
Hey, now I know what's the problem, its a missing feature in the library that is needed for changing the background object (frame) of any CTk object manually. I will add this in the next days. For a quick fix you could also set the border color, what is currently the white border, to your frame color ( |
I have tried this: |
Just download the current repository, it should work. |
do you suggest that I edit the latest version by adding these lines?
|
You don't need to edit anything the problem that the border color remains the same as it was initially (white) is fixed in the current Github version. |
Thanks EDIT: a question |
Ahh okay, tkinter variables are actually there for all widgets since today in the Github version. And because of the antialiasing on windows I already did a lot of research and it seems like its not possible with the normal tkinter canvas. A solution would be to use this (https://web.archive.org/web/20200619012602id_/http://effbot.org/zone/pythondoc-aggdraw.htm) for drawing, which is compatible with tkinter, but it looks like you cannot reference specific objects on the canvas, just draw on top or clear the whole canvas. Maybe I will try to render the widgets with this library on Windows... |
okay thanks |
I am unable to remove this border.
I edited some code to get
.configure
method for slider widget, and when I call this method, this thick border forms around the slider widget. How to remove this?The text was updated successfully, but these errors were encountered: