Buy Me a Coffee? Your support is much appreciated!
PayPal Me: https://www.paypal.me/jiejenn/5
Venmo: @Jie-Jenn
Source Code:
import sys from PyQt5.QtWidgets import QApplication, QWidget, QCheckBox, QHBoxLayout class AppDemo(QWidget): def __init__(self): super().__init__() self.resize(400, 200) layout = QHBoxLayout() # self.setStyleSheet(""" # QCheckBox { # font-size: 50px; # } # QCheckBox::indicator { # width: 40px; # height: 40px; # } # """) self.checkBoxYes = QCheckBox('Yes') layout.addWidget(self.checkBoxYes) self.checkBoxNo = QCheckBox('No') layout.addWidget(self.checkBoxNo) self.setLayout(layout) if __name__ == '__main__': app = QApplication(sys.argv) demo = AppDemo() demo.show() try: sys.exit(app.exec_()) except SystemExit: print('Closing Window...')