/usr/share/gtk-doc/html/pygtk/class-gtkfontbutton.html is in python-gtk2-doc 2.24.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.FontButton</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkfixed.html" title="gtk.Fixed"><link rel="next" href="class-gtkfontselection.html" title="gtk.FontSelection"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.FontButton</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkfixed.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkfontselection.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.FontButton"><a name="class-gtkfontbutton"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.FontButton</h2><p>gtk.FontButton — a button to launch a font
selection dialog (new in PyGTK 2.4)</p></div><div class="refsect1" title="Synopsis"><a name="id3716030"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.FontButton</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkbutton.html" title="gtk.Button">gtk.Button</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gtkfontbutton.html#constructor-gtkfontbutton" title="Constructor">gtk.FontButton</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>fontname</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--get-title" title="gtk.FontButton.get_title">get_title</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--set-title" title="gtk.FontButton.set_title">set_title</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>title</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--get-use-font" title="gtk.FontButton.get_use_font">get_use_font</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--set-use-font" title="gtk.FontButton.set_use_font">set_use_font</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_font</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--get-use-size" title="gtk.FontButton.get_use_size">get_use_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--set-use-size" title="gtk.FontButton.set_use_size">set_use_size</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_size</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--get-font-name" title="gtk.FontButton.get_font_name">get_font_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--set-font-name" title="gtk.FontButton.set_font_name">set_font_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>fontname</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--get-show-style" title="gtk.FontButton.get_show_style">get_show_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--set-show-style" title="gtk.FontButton.set_show_style">set_show_style</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_style</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--get-show-size" title="gtk.FontButton.get_show_size">get_show_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--set-show-size" title="gtk.FontButton.set_show_size">set_show_size</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_size</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3716377"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
+-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
+-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
+-- <a class="link" href="class-gtkbin.html" title="gtk.Bin">gtk.Bin</a>
+-- <a class="link" href="class-gtkbutton.html" title="gtk.Button">gtk.Button</a>
+-- <a class="link" href="class-gtkfontbutton.html" title="gtk.FontButton">gtk.FontButton</a>
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id3716434"></a><h2>Implemented Interfaces</h2><p>
<a class="link" href="class-gtkfontbutton.html" title="gtk.FontButton"><code class="classname">gtk.FontButton</code></a>
implements
<a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
</p></div><div class="refsect1" title="gtk.FontButton Properties"><a name="properties-gtkfontbutton"></a><h2>gtk.FontButton Properties</h2><p><a class="link" href="class-gtkobject.html#properties-gtkobject" title="gtk.Object Properties">gtk.Object Properties</a></p><p><a class="link" href="class-gtkwidget.html#properties-gtkwidget" title="gtk.Widget Properties">gtk.Widget Properties</a></p><p><a class="link" href="class-gtkcontainer.html#properties-gtkcontainer" title="gtk.Container Properties">gtk.Container Properties</a></p><p><a class="link" href="class-gtkbutton.html#properties-gtkbutton" title="gtk.Button Properties">gtk.Button Properties</a></p><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"font-name"</td><td valign="top">Read-Write</td><td valign="top">The name of the currently selected font.</td></tr><tr valign="top"><td valign="top">"show-size"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the selected font size will
be shown in the label. For a more WYSIWIG way to show the
selected size, see the "use-size" property.</td></tr><tr valign="top"><td valign="top">"show-style"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the name of the selected
font style will be shown in the label. For a more WYSIWIG way
to show the selected style, see the "use-font"
property.</td></tr><tr valign="top"><td valign="top">"title"</td><td valign="top">Read-Write</td><td valign="top">The title of the font selection dialog.</td></tr><tr valign="top"><td valign="top">"use-font"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the label will be drawn in
the selected font</td></tr><tr valign="top"><td valign="top">"use-size"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the label will be drawn
with the selected font size.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.FontButton Style Properties"><a name="style-properties-gtkfontbutton"></a><h2>gtk.FontButton Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p><p><a class="link" href="class-gtkbutton.html#style-properties-gtkbutton" title="gtk.Button Style Properties">gtk.Button Style Properties</a></p></div><div class="refsect1" title="gtk.FontButton Signal Prototypes"><a name="signal-prototypes-gtkfontbutton"></a><h2>gtk.FontButton Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p><p><a class="link" href="class-gtkcontainer.html#signal-prototypes-gtkcontainer" title="gtk.Container Signal Prototypes">gtk.Container Signal Prototypes</a></p><p><a class="link" href="class-gtkbutton.html#signal-prototypes-gtkbutton" title="gtk.Button Signal Prototypes">gtk.Button Signal Prototypes</a></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtkfontbutton.html#signal-gtkfontbutton--font-set" title='The "font-set" gtk.FontButton Signal'>font-set</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>fontbutton</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" title="Description"><a name="id3716825"></a><h2>Description</h2><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.4 and above.</p></div><p>The <a class="link" href="class-gtkfontbutton.html" title="gtk.FontButton"><code class="classname">gtk.FontButton</code></a>
is a button that displays the currently selected font and, when clicked,
opens a <a class="link" href="class-gtkfontselectiondialog.html" title="gtk.FontSelectionDialog"><code class="classname">gtk.FontSelectionDialog</code></a>
to change the font. A <a class="link" href="class-gtkfontbutton.html" title="gtk.FontButton"><code class="classname">gtk.FontButton</code></a>
can be used in a preference dialog for selecting a font.</p></div><div class="refsect1" title="Constructor"><a name="constructor-gtkfontbutton"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.FontButton</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>fontname</code></strong></span><span class="initializer">=None</span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>fontname</code></strong> :</span></p></td><td>the name of the font to display in the font
selection dialog</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new font button widget</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.4 and above.</p></div><p>Creates a new <a class="link" href="class-gtkfontbutton.html" title="gtk.FontButton"><code class="classname">gtk.FontButton</code></a>
that displays the font specified by <em class="parameter"><code>fontname</code></em> or the
currently selected font if <em class="parameter"><code>fontname</code></em> is
<code class="literal">None</code> or not specified.</p></div><div class="refsect1" title="Methods"><a name="id3716987"></a><h2>Methods</h2><div class="refsect2" title="gtk.FontButton.get_title"><a name="method-gtkfontbutton--get-title"></a><h3>gtk.FontButton.get_title</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_title</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the title string</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_title</code>() method returns the
value of the "title" property that contains the title of the font selection
dialog.</p></div><div class="refsect2" title="gtk.FontButton.set_title"><a name="method-gtkfontbutton--set-title"></a><h3>gtk.FontButton.set_title</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_title</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>title</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>title</code></strong> :</span></p></td><td>a string containing the font selection dialog
title</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">set_title</code>() method sets the "title"
property to the string specified by <em class="parameter"><code>title</code></em> and sets
the title of the <a class="link" href="class-gtkfontselectiondialog.html" title="gtk.FontSelectionDialog"><code class="classname">gtk.FontSelectionDialog</code></a>
if it exists. The "title" property contains the title of the font
selection dialog.</p></div><div class="refsect2" title="gtk.FontButton.get_use_font"><a name="method-gtkfontbutton--get-use-font"></a><h3>gtk.FontButton.get_use_font</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_use_font</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code>, if the font button
label is written using the selected font.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_use_font</code>() method returns the
value of the "use-font" property. If "use-font" is <code class="literal">True</code>
the selected font is used in the label.</p></div><div class="refsect2" title="gtk.FontButton.set_use_font"><a name="method-gtkfontbutton--set-use-font"></a><h3>gtk.FontButton.set_use_font</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_use_font</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_font</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>use_font</code></strong> :</span></p></td><td>If <code class="literal">True</code>, the font button label
will be written using the font selected.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">set_use_font</code>() method sets the
"use-font" property to the value specified by
<em class="parameter"><code>use_font</code></em>. If <em class="parameter"><code>use_font</code></em> is
<code class="literal">True</code>, the font button label will be written using the
selected font.</p></div><div class="refsect2" title="gtk.FontButton.get_use_size"><a name="method-gtkfontbutton--get-use-size"></a><h3>gtk.FontButton.get_use_size</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_use_size</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the font button label
is written using the selected size.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_use_size</code>() method returns the
value of the "use-size" property. If the value of "use-size" is
<code class="literal">True</code>, the font button label is written using the selected
font size.</p></div><div class="refsect2" title="gtk.FontButton.set_use_size"><a name="method-gtkfontbutton--set-use-size"></a><h3>gtk.FontButton.set_use_size</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_use_size</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_size</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>use_size</code></strong> :</span></p></td><td>If <code class="literal">True</code>, the font button label
will be written using the selected size.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">set_use_size</code>() method sets the
"use-size" property to the value of <code class="literal">use_size</code>. If
<em class="parameter"><code>use_size</code></em> is <code class="literal">True</code>, the font button
label will be written using the selected size.</p></div><div class="refsect2" title="gtk.FontButton.get_font_name"><a name="method-gtkfontbutton--get-font-name"></a><h3>gtk.FontButton.get_font_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_font_name</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the font name.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_font_name</code>() method returns the
value of the "font-name" property that contains the name of the currently
selected font.</p></div><div class="refsect2" title="gtk.FontButton.set_font_name"><a name="method-gtkfontbutton--set-font-name"></a><h3>gtk.FontButton.set_font_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_font_name</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>fontname</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>fontname</code></strong> :</span></p></td><td>the name of the font to display in the font
selection dialog</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the font selection
dialog exists and the font name could be set</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">set_font_name</code>() method sets the
"font-name" property to the value of <em class="parameter"><code>fontname</code></em> and
updates the currently-displayed font in the font selection dialog. Returns
<code class="literal">True</code> if the font selection dialog exists and
<em class="parameter"><code>fontname</code></em> could be set as its font.</p></div><div class="refsect2" title="gtk.FontButton.get_show_style"><a name="method-gtkfontbutton--get-show-style"></a><h3>gtk.FontButton.get_show_style</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_show_style</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the font style will
be shown in the label.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_show_style</code>() method returns the
value of the "show-style" property. If "show-style" is
<code class="literal">True</code>, the name of the font style will be shown in the
font button label.</p></div><div class="refsect2" title="gtk.FontButton.set_show_style"><a name="method-gtkfontbutton--set-show-style"></a><h3>gtk.FontButton.set_show_style</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_show_style</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_style</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>show_style</code></strong> :</span></p></td><td>if <code class="literal">True</code>, the font style
should be displayed in the font button label.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">set_show_style</code>() method sets the
"show-style" property tot he value of <em class="parameter"><code>show_style</code></em>. If
<em class="parameter"><code>show_style</code></em> is <code class="literal">True</code>, the font style
will be displayed along with name of the selected font in the font button
label.</p></div><div class="refsect2" title="gtk.FontButton.get_show_size"><a name="method-gtkfontbutton--get-show-size"></a><h3>gtk.FontButton.get_show_size</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_show_size</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the font size will
be shown in the font button label.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_show_size</code>() method returns the
value of the "show-size" property. If "show-size" is
<code class="literal">True</code>, the font size will be shown in the font button
label.</p></div><div class="refsect2" title="gtk.FontButton.set_show_size"><a name="method-gtkfontbutton--set-show-size"></a><h3>gtk.FontButton.set_show_size</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_show_size</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_size</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>show_size</code></strong> :</span></p></td><td>if <code class="literal">True</code>, the font size should
be displayed in the font button label.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">set_show_size</code>() method sets the
"show-size" property to to the value of <em class="parameter"><code>show_size</code></em>. If
<em class="parameter"><code>show_size</code></em> is <code class="literal">True</code>, the font size
will be displayed along with the name of the selected font in the font
button label.</p></div></div><div class="refsect1" title="Signals"><a name="id3718083"></a><h2>Signals</h2><div class="refsect2" title='The "font-set" gtk.FontButton Signal'><a name="signal-gtkfontbutton--font-set"></a><h3>The "font-set" gtk.FontButton Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>fontbutton</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>fontbutton</code></em> :</span></p></td><td>the fontbutton that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "font-set" signal is emitted when the user selects a
font. When handling this signal, use the <a class="link" href="class-gtkfontbutton.html#method-gtkfontbutton--get-font-name" title="gtk.FontButton.get_font_name"><code class="methodname">get_font_name</code>()</a>
method to find out what font was just selected.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkfixed.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gtkfontselection.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Fixed </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.FontSelection</td></tr></table></div></body></html>
|