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

Progress bar rendering bug: height/width and corner_radius attributes not compatible #2587

Open
JerryTYan opened this issue Sep 21, 2024 · 0 comments

Comments

@JerryTYan
Copy link

image
This visual bug occurs for both vertical and horizontal orientations.
See issue #2414 for vertical rendering

    def show_progress_bar(self):
        self.clear_window()
        
        self.progress_label = ctk.CTkLabel(
            master=self, text="Generating video...", font=("Segoe UI", 16), anchor="center"
        )
        self.progress_bar = ctk.CTkProgressBar(self, orientation="horizontal", mode="indeterminate", height=20, corner_radius=5)
        self.cancelBtn = ctk.CTkButton(
            master=self, text="Cancel", border_width=1, border_color="#dfe6e9",
            fg_color="#6c5ce7", hover_color="#5f27cd", command=self.on_closing
        )
        self.progress_label.pack(pady=20)
        self.progress_bar.pack(pady=20)
        self.progress_bar.start()
        self.cancelBtn.pack(pady=20)
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

1 participant