Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
def ButtonEnabler(self,flag=True):
self.dialog.buttonRow.okButton.Enable(flag)
self.dialog.buttonRow.testButton.Enable(flag)
if flag and self.isDirty:
self.dialog.buttonRow.applyButton.Enable(True)
else:
self.dialog.buttonRow.applyButton.Enable(False)
def EnableButtons(self, flag=True):
"""
Enables/Disables the OK, Apply and Test buttons.
Useful if you want to temporarily disable them, because the current
settings have no valid state and later re-enable them.
"""
buttonRow = self.dialog.buttonRow
buttonRow.okButton.Enable(flag)
buttonRow.testButton.Enable(flag)
if flag and self.isDirty:
buttonRow.applyButton.Enable(True)
else:
buttonRow.applyButton.Enable(False)
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!