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

pygubu-designer 0.32 error: customtkinter plugin breaks with customtkinter version 5 and above #172

Closed
XiangQinxi opened this issue Dec 4, 2022 · 12 comments
Labels
bug Something isn't working

Comments

@XiangQinxi
Copy link

屏幕截图 2022-12-04 184957

@XiangQinxi
Copy link
Author

屏幕截图 2022-12-04 185038

@XiangQinxi
Copy link
Author

info -

pygubu : 0.27
pygubu-designer : 0.32

@alejandroautalan
Copy link
Owner

Hello @XiangQinxi, thanks for trying pygubu.

When do you have that error? When pygubu-designer starts?
What python version are you using?
What customtkinter version?

Regards
Alejandro A.

@alejandroautalan
Copy link
Owner

Hello, thanks for the report. I found the problem.
The plugin breaks with the new customtkinter version 5.0

I will try to fix it ASAP.

Regards!
Alejandro A.

@alejandroautalan alejandroautalan added the bug Something isn't working label Dec 5, 2022
@JojoMueller
Copy link

About 3 month ago, I got the same error message after a pygubu-designer update. Reason was a need to change the first import directive in customwidgets.py to:

from pygubu.api.v1 import BuilderObject, register_widget

@alejandroautalan alejandroautalan changed the title pygubu-designer 0.32 error pygubu-designer 0.32 error: customtkinter plugin breaks with customtkinter version 5 and above Dec 12, 2022
alejandroautalan added a commit to alejandroautalan/pygubu that referenced this issue Jan 17, 2023
TODO:
Issues on designer:
- Can't select SegmentedButton in Preview (can't click it)
- Click on tabview tab does not select tab in treeview.
- F5 preview of CTk does not show images and shows warning when the
  preview closes. This is because Ctk is another tk instance running on
  another thread.
@kirillcisco
Copy link

Hey, something new about ctkv5 support?
pygubu-designer-0.36
pygubu-0.31
image

@alejandroautalan
Copy link
Owner

Hello @kirillcisco,

Hey, something new about ctkv5 support?
pygubu-designer-0.36
pygubu-0.31

Have you installed pillow?
I don't know why customtkinter is not enforcing pillow dependency.

Let me know if this works.

Regards

@kirillcisco
Copy link

Hello @kirillcisco,

Hey, something new about ctkv5 support?
pygubu-designer-0.36
pygubu-0.31

Have you installed pillow? I don't know why customtkinter is not enforcing pillow dependency.

Let me know if this works.

Regards

Thanks, @alejandroautalan
It works well

@kirillcisco
Copy link

kirillcisco commented Jul 26, 2023

@alejandroautalan, but there was a problem with compatibility
this linked with #192

File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\pygubu\builder.py", line 228, in _realize
    child = self._realize(parent, childmeta)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\pygubu\builder.py", line 217, in _realize
    parent.realize(master, extra_init_args)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\pygubu\component\builderobject.py", line 122, in realize
    self.widget = self.class_(master, **args)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\customtkinter\windows\widgets\ctk_frame.py", line 33, in __init__
    super().__init__(master=master, bg_color=bg_color, width=width, height=height, **kwargs)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\customtkinter\windows\widgets\core_widget_classes\ctk_base_class.py", line 46, in __init__
    check_kwargs_empty(kwargs, raise_error=True)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\customtkinter\windows\widgets\utility\utility_functions.py", line 18, in check_kwargs_empty
    raise ValueError(f"{list(kwargs_dict.keys())} are not supported arguments. Look at the documentation for supported arguments.")
ValueError: ['name'] are not supported arguments. Look at the documentation for supported arguments.

@alejandroautalan
Copy link
Owner

@alejandroautalan, but there was a problem with compatibility

Hello @kirillcisco, thanks for your reply. I will review it ASAP.

Regards.
Alejandro A.

@Thosch42
Copy link

Thosch42 commented Jan 2, 2024

Is something new with the customtkinter support? I tried it also with customtkinter 4.6.3, but startup of pygubu-designer fails.

@alejandroautalan
Copy link
Owner

Updated pygubu and designer to support customtkinter 5.2.2

Please install all dependencies of customtkinter.
Or install using:

pip install pygubu-designer[customtkinter]

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants