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)
def setFont(): """Set the main application font from a user dialog.""" font,ok = widgets.selectFont() if ok: gui.setFont(font)