Akascape / CTkMenuBar

Modern menu/tool bar widget library for customtkinter. (extension/add-on)
Creative Commons Zero v1.0 Universal
111 stars 9 forks source link

Issue using CTkMenuBar while using grid() widget/geometry manager #29

Closed UX0l0l closed 5 months ago

UX0l0l commented 5 months ago

Hello. I'm working on a personal project that involves using grid instead of pack on the main window in customtkinter, and when I imported your library and decided to use the menu bar, it told me it is unable to use grid because the window already has slaves managed by pack. This is the error I got:

File "/home/youn/.local/lib/python3.12/site-packages/customtkinter/windows/widgets/core_widget_classes/ctk_base_class.py", line 321, in grid return super().grid(**self._apply_argument_scaling(kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/tkinter/__init__.py", line 2569, in grid_configure self.tk.call( _tkinter.TclError: cannot use geometry manager grid inside . which already has slaves managed by pack

I hope you are able to fix this in the near future as I unfortunately can't use your module due to this reason

UX0l0l commented 5 months ago

nvm just saw #19, will close this issue immediately