简体   繁体   English

为什么 customtkinter 元素有一个奇怪的形状

[英]why customtkinter elements have a strange shape

I'm trying to use customtkinter.我正在尝试使用 customtkinter。 i downloaded the examples and when i try theme, all the elements have a strange shape enter image description here which don't look like the screens of the examples on github. I searched on google but didn't find a way to solve this.我下载了示例,当我尝试主题时,所有元素都有一个奇怪的形状enter image description here这看起来不像 github 上示例的屏幕。我在谷歌上搜索但没有找到解决这个问题的方法。 I use我用

  • Ubuntu 22.04 Ubuntu 22.04
  • Anaconda Anaconda
  • tested on Python 3.8 and python 3.10在 Python 3.8 和 python 3.10 上测试
  • the customtkinter (V5.0.3) was installed using pip customtkinter (V5.0.3) 使用 pip 安装

I tried two different versions of python, tried reinstalling the lib was expecting elements with this kind of shape https://github.com/TomSchimansky/CustomTkinter/blob/master/documentation_images/image_example_dark_Windows.png我尝试了两个不同版本的 python,尝试重新安装 lib 期待具有这种形状的元素https://github.com/TomSchimansky/CustomTkinter/blob/master/documentation_images/image_example_dark_Windows.png

Well apparently it's a known bug with anaconda and there is no proper solution yet.显然这是 anaconda 的一个已知错误,目前还没有合适的解决方案。 You can find the bug report here https://github.com/ContinuumIO/anaconda-issues/issues/6833您可以在此处找到错误报告https://github.com/ContinuumIO/anaconda-issues/issues/6833

An ugly workaround wich actual works is to replace your conda env libtk8.6 by a symlink to system libtk8.6:一个丑陋的解决方法至极实际工作是用系统 libtk8.6 的符号链接替换你的 conda env libtk8.6:

cd [Your_conda_env_path]/lib/ cd [Your_conda_env_path]/lib/

mv libtk8.6.so libtk8.6.so.old mv libtk8.6.so libtk8.6.so.old

ln -s /usr/lib/x86_64-linux-gnu/libtk8.6.so. ln -s /usr/lib/x86_64-linux-gnu/libtk8.6.so。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM