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
Error when applying mica #2
Comments
Can't you get the hwnd of the window using the .frame() function? Becayer you need to apply this on each window, and not in the app itself |
*Because Aditionally, Are you using any kind of library like PythonBlurBehind? |
I used to use PythonBlurBehind, but now removed it. The app's background is transparent for PythonBlurBehind. Should I make it solid again? |
When using |
The issue is because of ctypes interferences. My soolution was to use a moded version of it. You only have to remove the declarations of the rgument datatypes.
I also faced the same issue, and finished by modding the module |
So I need to mod ctypes? I cant find matching lines in this code |
No need to mod ctypes but the pythonBlurBehind module Although it may not be used, when the moduleis imported it interfiers with win32mica because of those two lines in the PythonBlurBehind Module. Commend them (the module will still work) and everyuthing should go fine |
https://github.com/martinet101/ElevenClock/blob/main/elevenclock/external/blurwindow.py This is an exapmle taken from ElevenClock |
That fixed it! But is there any way to remove the black box on the title or disable ExpandFrameIntoClientArea until the titlebar text is fixed on Beta Channel? |
I don't think so. My approach was to literally set an empty string as titlebar and an empty icon on window icon. With this set it does look good |
Thank you for your help! |
Hi! Reallay awsome project!
I get this error when running on tkinter window:
Code:
ApplyMica(HWND=windll.user32.GetParent(app.winfo_id()), ColorMode=True)
Error:
The text was updated successfully, but these errors were encountered: