Ejemplo n.º 1
0
 def _currentCharFormatChanged(self,_format):
     format = QTextCharFormat(_format)
     self.widgets.font.setCurrentFont(format.font())
     self.widgets.fontsize.setValue(int(format.fontPointSize()))
     self.widgets.bold.setChecked(format.fontWeight() >= 75)
     self.widgets.italic.setChecked(format.fontItalic())
     self.widgets.underline.setChecked(format.fontUnderline())
     self.fgcolor_button_change_color(format.foreground().color())