473,663 Members | 2,877 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 21166
Se******@SeeBel ow.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>\Too ls\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***********@A cm.Org
Jul 18 '05 #2
On Thu, 13 May 2004 22:56:44 GMT, Se******@SeeBel ow.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******@SeeBel ow.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
5061
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 flags in 1st run. Yes, I know I am missing a reference, but which one? Any clues would be helpful. Thanks
0
1249
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
2194
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 install the fonts. I would like to right a .Net program that runs at startup to do this. So far though, all I can find to do this are references to the PrivateFontCollection. This appears to make fonts available only to the application and not to...
9
1383
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 txtbox As TextBox) 'other code txtbox.Page.RegisterClientScriptBlock("mykey","myscript") 'other code End Sub
24
2826
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 with the printer that i am printing to(Zebra TLP2844). When i open Word and look at the fonts available for the default printer, it does not show the fonts i want. If i cahnge the printer to the printer that
1
2061
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 other post on this topic: http://www.thescripts.com/forum/thread617007.html
0
1286
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 all the fonts available in Windows, and I can see those fonts on Microsoft Word when I create a document. How can I make the fonts available? I only can see 3 fonts. Does this happen because I have a HP printer installed? I have a HP 1320...
5
9705
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 that: col_test = 1 col_num = open_workbook(subnet) sheet = col_num.sheet_by_index(0) cell = sheet.cell(1,col_test) cell.ctype == XL_CELL_TEXT while cell.ctype == True:
0
8436
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8858
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8548
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8634
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4182
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1757
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.