mieki256's diary



2025/11/26(水) [n年前の日記]

#1 [python][tkinter] CustomTkinterを試用

Python Windows版にはtkinterというGUIアプリ作成用のライブラリ(モジュール?)が標準添付されているけれど、見た目がちょっと古めとの評が多く。

その見た目について、少しオシャレにした CustomTkinter というライブラリがあると知った。

_Official Documentation And Tutorial | CustomTkinter

気になったので試用してみることにした。環境は Windows11 x64 25H2 + Python 3.10.10。

pip でインストールする。

> python -m pip install customtkinter

Collecting customtkinter
  Downloading customtkinter-5.2.2-py3-none-any.whl.metadata (677 bytes)
Collecting darkdetect (from customtkinter)
  Downloading darkdetect-0.8.0-py3-none-any.whl.metadata (3.6 kB)
Requirement already satisfied: packaging in d:\python\python310-64\lib\site-packages (from customtkinter) (23.0)
Downloading customtkinter-5.2.2-py3-none-any.whl (296 kB)
Downloading darkdetect-0.8.0-py3-none-any.whl (9.0 kB)
Installing collected packages: darkdetect, customtkinter
Successfully installed customtkinter-5.2.2 darkdetect-0.8.0

以下がインストールされたっぽい。
MessageBoxも表示したいのだけど、それは別パッケージになるらしい。これもインストールしておいた。

_CTkMessagebox - PyPI

> python -m pip install CTkMessagebox

Collecting CTkMessagebox
  Downloading CTkMessagebox-2.7-py3-none-any.whl.metadata (7.4 kB)
Requirement already satisfied: customtkinter in d:\python\python310-64\lib\site-packages (from CTkMessagebox) (5.2.2)
Requirement already satisfied: pillow in d:\python\python310-64\lib\site-packages (from CTkMessagebox) (11.3.0)
Requirement already satisfied: darkdetect in d:\python\python310-64\lib\site-packages (from customtkinter->CTkMessagebox) (0.8.0)
Requirement already satisfied: packaging in d:\python\python310-64\lib\site-packages (from customtkinter->CTkMessagebox) (23.0)
Downloading CTkMessagebox-2.7-py3-none-any.whl (125 kB)
Installing collected packages: CTkMessagebox
Successfully installed CTkMessagebox-2.7

customtkinter, pillow, darkdetect に依存する模様。

参考ページ :


以上です。

過去ログ表示

Prev - 2025/11 - Next
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30

カテゴリで表示

検索機能は Namazu for hns で提供されています。(詳細指定/ヘルプ


注意: 現在使用の日記自動生成システムは Version 2.19.6 です。
公開されている日記自動生成システムは Version 2.19.5 です。

Powered by hns-2.19.6, HyperNikkiSystem Project