473,507 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where do I find what colors and fonts are available?

I'm learning Tkinter, from Grayson's book and some online sources.

I don't know how to find out which color names and font names are
available on my system. I'm using Windows 2000. I assume that info is
in some file or files somewhere, buy I don't know the file name or
directory.

Thanks,

Mitchell Timin

--
"Many are stubborn in pursuit of the path they have chosen, few in
pursuit of the goal." - Friedrich Nietzsche

http://annevolve.sourceforge.net is what I'm into nowadays.
Humans may write to me at this address: zenguy at shaw dot ca
Jul 18 '05 #1
4 21158
Se******@SeeBelow.Nut wrote:
I don't know how to find out which color names I searched my python directory for files including "darkblue"
and found two text files in <pythondir>\Tools\Pynche with interesting
lists: webcolors.txt and rgb.txt (as well as some good stuff from
reportlab and wxPython, which you probably don't have loaded).
and font names are available on my system. I'm using Windows 2000.

I'd search for *.ttf (a particular kind of font file), and look at the
directories where several of these show up. This is, of course, a Win2K
rather than Python Question. On my installation, the fonts are in
C:\WINNT\Fonts.

--
-Scott David Daniels
Sc***********@Acm.Org
Jul 18 '05 #2
On Thu, 13 May 2004 22:56:44 GMT, Se******@SeeBelow.Nut wrote:
I'm learning Tkinter, from Grayson's book and some online sources.

I don't know how to find out which color names and font names are
available on my system. I'm using Windows 2000. I assume that info is
in some file or files somewhere, buy I don't know the file name or
directory.

Thanks,

Mitchell Timin


Mitchell ....

For a list of fonts in Tkinter,
you might try ....

import Tkinter
import tkFont

root = Tkinter.Tk()

list_fonts = list( tkFont.families() )

list_fonts.sort()

for this_family in list_fonts :

print this_family
For a list of colors in Tkinter
check the list at ....

http://www.tcl.tk/man/tcl8.3/TkCmd/colors.htm

--
Cousin Stanley
Human Being
Phoenix, Arizona
Jul 18 '05 #3
Cousin Stanley wrote:

On Thu, 13 May 2004 22:56:44 GMT, Se******@SeeBelow.Nut wrote:
I'm learning Tkinter, from Grayson's book and some online sources.

I don't know how to find out which color names and font names are
available on my system. I'm using Windows 2000. I assume that info is
in some file or files somewhere, buy I don't know the file name or
directory.

Thanks,

Mitchell Timin


Mitchell ....

For a list of fonts in Tkinter,
you might try ....

import Tkinter
import tkFont

root = Tkinter.Tk()

list_fonts = list( tkFont.families() )

list_fonts.sort()

for this_family in list_fonts :

print this_family

For a list of colors in Tkinter
check the list at ....

http://www.tcl.tk/man/tcl8.3/TkCmd/colors.htm

--
Cousin Stanley
Human Being
Phoenix, Arizona


Thanks, Couz, that's very good info.

m

--
"Many are stubborn in pursuit of the path they have chosen, few in
pursuit of the goal." - Friedrich Nietzsche

http://annevolve.sourceforge.net is what I'm into nowadays.
Humans may write to me at this address: zenguy at shaw dot ca
Jul 18 '05 #4
> Thanks, Couz, that's very good info.

Mitchell ....

You're welcome ....

I'm glad I could help out a bit ....

--
Cousin Stanley
Human Being
Phoenix, Arizona
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5052
by: Jim Abbott | last post by:
Hello Been away from VB for awhile and have forgotten how to determine what reference is missing when I goto to the project References pile. Of all things to get error on is "then goto x" being...
0
1245
by: Tom Dauria | last post by:
I used to have a font on my system called "small fonts". Now I can't find it. Does anyone know where to get this font?
1
2185
by: rsine | last post by:
I am interested in writing an application to install fonts on our web server. Currently, when the server is rebooted, one has to remember to run an asp page that has the code built into it to...
9
1363
by: Nathan Sokalski | last post by:
I have used the RegisterClientScriptBlock method in external functions of mine (ones that are saved in a separate *.vb file), where I use them as follows: Public Shared Sub MyFunction(ByVal...
24
2811
by: Tony Girgenti | last post by:
Hello. Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on a windows XP Pro, SP2. Before printing a document, i want to set the font to a font that is only available...
1
2051
by: darwin2kx | last post by:
I'm working with GD, but just starting with it. How can I find out where the fonts are actually located? I need to figure out what fonts I have to work with, so that I can use them in an image. My...
0
1279
by: WDS | last post by:
Hello something weird happens to me. I have Windows Server 2003 with all the fonts installed and Microsoft Visual Studio .NET 2003. When I create a report on Visual Studio .NET (rpt), I can't see...
5
9675
by: bd62 | last post by:
I want to output the results of a Python script to the next available column (one without any data in it) of a specified row in an excel spreadsheet (XLS). Below is the portion of my code to do...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.