Skip to content

Instantly share code, notes, and snippets.

@eyllanesc
Created July 29, 2017 01:43
Show Gist options
  • Save eyllanesc/ece0fe6e0f719267fda6cc7775568615 to your computer and use it in GitHub Desktop.
Save eyllanesc/ece0fe6e0f719267fda6cc7775568615 to your computer and use it in GitHub Desktop.
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
import sys
app = QApplication(sys.argv)
w = QWidget()
w.setLayout(QVBoxLayout())
skillP = QCheckBox("Passive")
skillCb = QCheckBox("Combat")
skillCm = QCheckBox("Command")
skillP.setChecked(True)
addskillG = QButtonGroup()
addskillG.addButton(skillP)
addskillG.addButton(skillCm)
addskillG.addButton(skillCb)
w.layout().addWidget(skillP)
w.layout().addWidget(skillCm)
w.layout().addWidget(skillCb)
w.show()
sys.exit(app.exec_())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment