Skip to content

Instantly share code, notes, and snippets.

@Park-Developer
Created January 2, 2021 07:48
Show Gist options
  • Save Park-Developer/c3107ca767c86878cf03da8e6fc05f86 to your computer and use it in GitHub Desktop.
Save Park-Developer/c3107ca767c86878cf03da8e6fc05f86 to your computer and use it in GitHub Desktop.
pyqt5 : button activation setting
def sleep5sec(self):
self.targetBtn.setEnabled(False)
QTimer.singleShot(5000, lambda: self.targetBtn.setDisabled(False))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment