def invoke(self, notID, actor = None): if not actor: LOG_ERROR('GUI item is not found', self) return if actor.getType() != WGNC_GUI_TYPE.POP_UP: LOG_WARNING('Hiding buttons is allowed in pup up only', actor, self) return actor.hideButtons() actor.setNote(self._text) g_wgncEvents.onItemUpdatedByAction(notID, actor)
def invoke(self, notID, actor=None): if not actor: LOG_ERROR('GUI item is not found', self) return if actor.getType() != WGNC_GUI_TYPE.POP_UP: LOG_WARNING('Hiding buttons is allowed in pup up only', actor, self) return actor.hideButtons() actor.setNote(self._text) g_wgncEvents.onItemUpdatedByAction(notID, actor)