<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff size=2>The
following is under the "Dynamic Components" section of the reference page for
Pmw.NoteBook:</FONT></SPAN></DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff size=2>"<FONT
size=3><FONT color=#000000><FONT face="Times New Roman">Page and tab components
are created dynamically by the </FONT><CODE>add()</CODE><FONT
face="Times New Roman"> and </FONT><CODE>insert()</CODE><FONT
face="Times New Roman"> methods. By default, the pages are of type Tkinter.Frame
and are created with a component group of <STRONG>Page</STRONG> and the tabs are
of type Tkinter.Button and are created with a component group of
<STRONG>Tab</STRONG>."</FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff size=2>Using
this information as a "clue" :-), you can use calls to get the components of the
NoteBook i.e. assuming your notebook instance was called "DisplayPages" and it
had tabbed pages called "Entry", "Results" then you would have the
following</FONT></SPAN></DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff size=2>print
self.component("DisplayPages").components()</FONT></SPAN></DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2>['Entry', 'Entry-tab', 'Results', 'Results-tab',
'hull']</FONT></SPAN></DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff size=2>So the
Frame component for the Entry tabbed page is called 'Entry' and the Button that
contains the name (and font you want to manipulate) is called 'Entry-tab'. So to
change the font is something like this:</FONT></SPAN></DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2>self.component('DisplayPages').component('Entry-tab').configure(font =
('Helvetica', 10, 'bold italic'))</FONT></SPAN></DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff size=2>This
is probably more detail than you were asking for but hey, what the hell!
:-)</FONT></SPAN></DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2>Peter</FONT></SPAN></DIV>
<DIV><SPAN class=627155620-20072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Netherdog@cs.com
[mailto:Netherdog@cs.com]<BR><B>Sent:</B> Tuesday, July 20, 2004 2:57
PM<BR><B>To:</B> tkinter-discuss@python.org<BR><B>Cc:</B>
clnethery@juno.com<BR><B>Subject:</B> [Tkinter-discuss] Changing the fonts on
my Pmw.NoteBook tabs<BR><BR></FONT></DIV><FONT face=arial,helvetica><FONT
lang=0 face=Arial size=2 FAMILY="SANSSERIF" PTSIZE="10">Hello everyone.
It has been awhile since I have requested the sound advice of my esteemed
Tkinter colleagues, but once again I am stumped. Regarding the use of
the Pmw.NoteBook widget, I am trying to set/change the fonts for my notebook
tabs, but cannot seem to figure out how to do it. Since Pmw.NoteBook has
only one component, 'Hull', and no 'entry' component, for example, I am truly
at a loss as to how this can be accomplished. Any ideas on this
one?<BR><BR><BR>Thanking you in advance,<BR><BR>Chris Nethery</FONT>
</FONT></BLOCKQUOTE></BODY><!--[object_id=#resmed.com.au#]--></HTML>