如何为 Python 查找或安装主题 tkinter ttk [英] How to find or install themes tkinter ttk for Python

查看:38
本文介绍了如何为 Python 查找或安装主题 tkinter ttk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去 3 个月我一直在制作一个机器人,它只用代码就能完美运行.现在我的下一个目标是为它制作一个 GUI,但是我一直在寻找一些障碍,主要的障碍是不能看起来像一个 30 岁的程序.

I've been making a bot for the past 3 months and it works perfect just with code. Now my next goal is to make a GUI for it, however I've been finding some obstacles and the main one is the ability to not look like a 30years old program.

  • 我使用的是 Windows 7.
  • 我只使用 Python 3.3.2(没有包、插件、插件、其他程序等.只是从 http://www.python.org/download/).
  • Python 3.3.2 包含使用 Tkinter 和 ttk 的能力(据我所知).

然而,虽然 tkinter 对我的测试工作正常,但我一直无法找到一种方法来显示所有可用的主题或下载更多新主题的方法.

However, while tkinter works fine for my tests, I've been unable to find a way to display all availible themes or a way to download more new themes.

这行不通,我不知道为什么:

This won't work and i have no idea why:

from tkinter import *
from tkinter.ttk import *
s=Style()
s.theme_names()

那么...谁能告诉我如何在不安装其他任何东西的情况下仅从 IDLE 3.3.2 显示所有可用主题?或者我可以在哪里获得更多主题,因为我正在寻找现代主题.

So... can anyone tell me how to display all availible themes just from IDLE 3.3.2 without installing anything else? Or where I could get more themes, since I'm looking for a modern one.

推荐答案

好的,我必须从 安装 ttkhttps://pypi.python.org/pypi/pyttk

这篇关于如何为 Python 查找或安装主题 tkinter ttk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆