21 lines
420 B
Python
21 lines
420 B
Python
from PyQt6.QtGui import QFont
|
|
|
|
|
|
class Settings():
|
|
|
|
def __init__(self):
|
|
self.font_size(12)
|
|
|
|
@staticmethod
|
|
def max_line_length():
|
|
return 4096
|
|
|
|
def font(self) -> QFont:
|
|
return self._font
|
|
|
|
def get_font_size(self) -> int:
|
|
return self._font_size
|
|
|
|
def font_size(self, font_size: int):
|
|
self._font_size = font_size
|
|
self._font = QFont("monospace", font_size) |