PyKDE - Python Bindings for KDE
class KFontChooser
Table of contents
Modules
tdeui Classes
All Classes
Module
tdeui
Class
KFontChooser
Inherits
TQWidget
enums
FontColumn
= {FamilyList, StyleList, SizeList }
FontColumn
= {FamilyList, StyleList, SizeList, CharsetList }
FontDiff
= {FontDiffFamily, FontDiffStyle, FontDiffSize }
FontListCriteria
= {FixedWidthFonts, ScalableFonts, SmoothScalableFonts }
methods
KFontChooser
(parent = 0, name = "", onlyFixed = 0, fontList = TQStringList(), makeFrame = 1, visibleListSize = 8, diff = 0, sizeIsRelativeState = 0)
returns
,
Argument
Type
Default
parent
TQWidget
0
name
string
""
onlyFixed
bool
0
fontList
TQStringList
TQStringList()
makeFrame
bool
1
visibleListSize
int
8
diff
bool
0
sizeIsRelativeState
TQButton.ToggleState
0
backgroundColor
()
returns
(TQColor)
color
()
returns
(TQColor)
enableColumn
(column, state)
returns
nothing
Argument
Type
Default
column
int
state
bool
font
()
returns
(TQFont)
fontDiffFlags
()
returns
(int)
fontSelected
(font)
returns
nothing
Argument
Type
Default
font
TQFont
getFontList
(list, fontListCriteria)
returns
nothing
static
Argument
Type
Default
list
TQStringList
fontListCriteria
bool
getXLFD
(theFont)
returns
(TQString)
static
Argument
Type
Default
theFont
TQFont
sampleText
()
returns
(TQString)
setBackgroundColor
(col)
returns
nothing
Argument
Type
Default
col
TQColor
setColor
(col)
returns
nothing
Argument
Type
Default
col
TQColor
setFont
(font, onlyFixed = 0)
returns
nothing
Argument
Type
Default
font
TQFont
onlyFixed
bool
0
setSampleBoxVisible
(visible)
returns
nothing
In versions KDE 3.5.0 and above only
Argument
Type
Default
visible
bool
setSampleText
(text)
returns
nothing
Argument
Type
Default
text
TQString
setSizeIsRelative
(relative)
returns
nothing
Argument
Type
Default
relative
TQButton.ToggleState
sizeHint
()
returns
(TQSize)
sizeIsRelative
()
returns
(TQButton.ToggleState)