added comment

This commit is contained in:
2022-12-30 01:20:32 +01:00
parent 6ec830cefe
commit 58deb64768

View File

@ -9,6 +9,7 @@ class MenuBase:
def addSeparator(self):
self.qmenu.addSeparator()
#TODO: allow checkboxes with callback?
def addCheckbox(self, name, state=False):
action = QAction(name, checkable=True, parent=self.qmenu)
action.setChecked(state)