16 lines
436 B
Python
16 lines
436 B
Python
from PySide6.QtWidgets import QPushButton
|
|
from variables import MEDIUM_FONT_SIZE
|
|
|
|
|
|
class Button(QPushButton):
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
self.configStyle()
|
|
|
|
def configStyle(self):
|
|
font = self.font()
|
|
font.setPixelSize(MEDIUM_FONT_SIZE)
|
|
self.setFont(font)
|
|
self.setMinimumSize(75, 75)
|
|
self.setProperty('cssClass', 'specialButton')
|