CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

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

Open JerryTYan opened this issue 1 year ago • 0 comments

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)

JerryTYan avatar Sep 21 '24 15:09 JerryTYan