Table of Contents

Class: FontChooserDialog PmwContribD-r2_0_1/FontChooserDialog.py

A dialog class for choosing a font specification.

Options

title

Dialog title, string.

buttons

Buttons to create, sequence of names.

defaultbutton

Index in buttons of button which should be default.

family

The font family of the selected font. Defaults to helvetica.

bold

Boolean indicating whether bold is enabled for the font.

italic

Boolean indicating whether italic is enabled for the font.

underline

Boolean indicating whether underline is enabled for the font.

overstrike

Boolean indicating whether overstrike is enabled for the font.

size

Integer font size specification.

Base Classes   
Pmw.Dialog
Methods   
__init__
activate
createFontParametersPage
createInterior
familyCB
optionChangedCB
sizeCB
updateExample
updateSelected
value
  __init__ 
__init__ (
        self,
        parent=None,
        **kw,
        )

  activate 
activate ( self )

Show the dialog.

Display the dialog and return value() or None, depending on button pressed.

  createFontParametersPage 
createFontParametersPage ( self )

Create the part of the dialog which allows basic font parameters to be set.

  createInterior 
createInterior ( self )

Create the interface for the dialog.

  familyCB 
familyCB ( self,  *args )

The family value was changed.

  optionChangedCB 
optionChangedCB ( self,  *args )

Called when one of the option checkbuttons was changed.

  sizeCB 
sizeCB ( self,  *args )

The size value was changed.

  updateExample 
updateExample ( self )

Change the font displayed in the example indicator.

Get all of our parameters and set the font in the example label.

  updateSelected 
updateSelected ( self )

Update the contents of the dialog based on selections.

  value 
value ( self )

Returns the font spec for the current font.

Returns a fontspec representation of the dialog option settings as configured by the user.


Table of Contents

This document was automatically generated on Mon Sep 17 17:47:46 2001 by HappyDoc version r2_0