GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.FontDialog
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.FontDialog — wxPython 4.3.2 Docs

phoenix_title wx.FontDialog¶

This class represents the font chooser dialog.

See also

FontDialog Overview, wx.FontData, wx.GetFontFromUser


class_hierarchy Class Hierarchy¶

Inheritance diagram for class FontDialog:

Inheritance diagram of FontDialog


appearance Control Appearance¶


wxMSW

wxMSW¶

wxGTK

wxGTK¶

wxMAC

wxMAC¶


method_summary Methods Summary¶

__init__

Default constructor.

Create

Creates the dialog if the wx.FontDialog object had been initialized using the default constructor.

GetClassDefaultAttributes

GetFontData

Returns the font data associated with the font dialog.

ShowModal

Shows the dialog, returning ID_OK if the user pressed Ok, and ID_CANCEL otherwise.


property_summary Properties Summary¶

FontData

See GetFontData


api Class API¶

class wx.FontDialog(Dialog)¶

Possible constructors:

FontDialog() -> None

FontDialog(parent) -> None

FontDialog(parent, data) -> None

This class represents the font chooser dialog.


Methods¶

__init__(self, *args, **kw)¶

overload Overloaded Implementations:



__init__ (self)

Default constructor.

Create must be called before the dialog can be shown.

Return type:

None



__init__ (self, parent)

Constructor with parent window.

Parameters:

parent (wx.Window)

Return type:

None



__init__ (self, parent, data)

Constructor.

Pass a parent window, and the font data object to be used to initialize the dialog controls.

Parameters:
  • parent (wx.Window)

  • data (wx.FontData)

Return type:

None





Create(self, *args, **kw)¶

Creates the dialog if the wx.FontDialog object had been initialized using the default constructor.

Returns:

True on success and False if an error occurred.

overload Overloaded Implementations:



Create (self, parent)

Parameters:

parent (wx.Window)

Return type:

bool



Create (self, parent, data)

Parameters:
  • parent (wx.Window)

  • data (wx.FontData)

Return type:

bool





static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶
Parameters:

variant (WindowVariant)

Return type:

wx.VisualAttributes



GetFontData(self)¶

Returns the font data associated with the font dialog.

Return type:

wx.FontData



ShowModal(self)¶

Shows the dialog, returning ID_OK if the user pressed Ok, and ID_CANCEL otherwise.

If the user cancels the dialog (ShowModal returns ID_CANCEL ), no font will be created. If the user presses wx.OK, a new wx.Font will be created and stored in the font dialog’s wx.FontData structure.

Return type:

int

See also

GetFontData


Properties¶

FontData¶

See GetFontData

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.