def taskrequest(self,cb): taskkey = gipsy.usertext(cb.key) if taskkey not in self.form.keys: self.form.addkey(taskkey) self.form.keys.append(taskkey) gipsy.KeyCallback(self.writekey, taskkey, task=cb.task) taskmsg = gipsy.usertext('M_'+cb.notifykey, default=2) self.form.errorLabel.setText(gipsy.usertext('R_'+cb.notifykey, default=2, defval=''))
def taskrequest(self, cb): taskkey = gipsy.usertext(cb.key) if taskkey not in self.form.keys: self.form.addkey(taskkey) gipsy.KeyCallback(self.writekey, taskkey, task=cb.task) self.form.showError(gipsy.usertext('R_'+cb.notifykey, default=1, defval='')) else: self.form.showError(gipsy.usertext('R_'+cb.notifykey, default=1, defval='')) self.form.showStatus(gipsy.usertext('S_'+cb.notifykey, default=1, defval=''), wi="error") gipsy.aborttask( self.task)
def show_status(self, cb): msg=gipsy.usertext('S_'+cb.notifykey, default=1, defval='') if not "ABORT" in msg: self.form.showStatus(msg, wi="error")
def writekey(self, cb): gipsy.wkey(cb.key+gipsy.usertext(cb.key, default=2, defval=''), cb.task)
def show_status(self,cb): self.form.statusLabel.setText(gipsy.usertext(cb.key))
def writekey(self,cb): gipsy.wkey(cb.key+gipsy.usertext(cb.key, default=2, defval=''), cb.task) self.form.errorLabel.setText('')