簡體   English   中英

為什么 customtkinter 元素有一個奇怪的形狀

[英]why customtkinter elements have a strange shape

我正在嘗試使用 customtkinter。 我下載了示例,當我嘗試主題時,所有元素都有一個奇怪的形狀enter image description here這看起來不像 github 上示例的屏幕。我在谷歌上搜索但沒有找到解決這個問題的方法。 我用

  • Ubuntu 22.04
  • Anaconda
  • 在 Python 3.8 和 python 3.10 上測試
  • customtkinter (V5.0.3) 使用 pip 安裝

我嘗試了兩個不同版本的 python,嘗試重新安裝 lib 期待具有這種形狀的元素https://github.com/TomSchimansky/CustomTkinter/blob/master/documentation_images/image_example_dark_Windows.png

顯然這是 anaconda 的一個已知錯誤,目前還沒有合適的解決方案。 您可以在此處找到錯誤報告https://github.com/ContinuumIO/anaconda-issues/issues/6833

一個丑陋的解決方法至極實際工作是用系統 libtk8.6 的符號鏈接替換你的 conda env libtk8.6:

cd [Your_conda_env_path]/lib/

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

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