Skip to content
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

Vertical Progressbar rendering bug #2414

Open
TRadigk opened this issue May 13, 2024 · 2 comments
Open

Vertical Progressbar rendering bug #2414

TRadigk opened this issue May 13, 2024 · 2 comments

Comments

@TRadigk
Copy link

TRadigk commented May 13, 2024

Hi,

the search yielded no results.

When the ProgressBar is set to orientation="'vertical" and corner radius is not 0, a part of the progressbar (inner rectangle) does not start at "0":
grafik

Notice the "big" example on bottom left.

I could not reproduce this issue with horizontal ProgressBar.

@FaheemM1020
Copy link

Can you provide the code for this ?

@TRadigk
Copy link
Author

TRadigk commented May 15, 2024

easily, yes:

import customtkinter
customtkinter.set_appearance_mode("Dark")  # Modes: "System" (standard), "Dark", "Light"
# Themes: "blue" (standard), "green", "dark-blue"
customtkinter.set_default_color_theme("blue")


class App(customtkinter.CTk):
    def __init__(self):
        self.setupWindow()
        self.protocol("WM_DELETE_WINDOW", self.__exitApp)
        verticalProgressBar = customtkinter.CTkProgressBar(
            self, width=100, corner_radius=15, orientation='vertical')
        self.run = True
        verticalProgressBar.pack()

    def setupWindow(self):
        super().__init__()
        self.geometry(f"{1024}x{600}")

    def __exitApp(self):
        self.run = False

        try:
            self.destroy()
        except:
            pass


if __name__ == "__main__":
    try:
        app = App()

        app.mainloop()
    except KeyboardInterrupt:
        app.run = False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants