diff --git a/customtkinter/widgets/dropdown_menu.py b/customtkinter/widgets/dropdown_menu.py index 47ca648..f97d0c2 100644 --- a/customtkinter/widgets/dropdown_menu.py +++ b/customtkinter/widgets/dropdown_menu.py @@ -52,6 +52,7 @@ class DropdownMenu(tkinter.Menu): font=self._apply_font_scaling(self._font)) elif sys.platform.startswith("win"): + print("dropdon win") self.configure(tearoff=False, relief="flat", activebackground=ThemeManager.single_color(self._hover_color, self._appearance_mode), @@ -95,6 +96,7 @@ class DropdownMenu(tkinter.Menu): self._command(value) def open(self, x: Union[int, float], y: Union[int, float]): + if sys.platform == "darwin": y += self._apply_widget_scaling(8) else: @@ -129,6 +131,8 @@ class DropdownMenu(tkinter.Menu): self._values = kwargs.pop("values") self._add_menu_commands() + super().configure(**kwargs) + def cget(self, attribute_name: str) -> any: if attribute_name == "min_character_width": return self._min_character_width diff --git a/test/manual_integration_tests/test_textbox.py b/test/manual_integration_tests/test_textbox.py index 4f90d79..2029e6a 100644 --- a/test/manual_integration_tests/test_textbox.py +++ b/test/manual_integration_tests/test_textbox.py @@ -99,5 +99,5 @@ scrollbar4 = customtkinter.CTkScrollbar(app, command=textbox_4.yview) scrollbar4.grid(row=0, column=5, sticky="nsew") textbox_4.configure(yscrollcommand=scrollbar4.set) -app.after(3000, lambda: customtkinter.set_appearance_mode("light")) +# app.after(3000, lambda: customtkinter.set_appearance_mode("light")) app.mainloop()