コード例 #1
0
def setAppearance():
    """Set the main application style and font from user dialog."""
    style,font = widgets.AppearenceDialog().getResult()
    if font:
        gui.setFont(font)
    if style:
        gui.setStyle(style)
コード例 #2
0
def setFont():
    """Set the main application font from a user dialog."""
    font,ok = widgets.selectFont()
    if ok:
        gui.setFont(font)