def on_lab_selected(self,data): if data is None: self.fld_request_id.SetValue('') return None # propose new request id nID = gmPathLab.get_next_request_ID(int(data)) if not nID is None: # set field to that self.fld_request_id.SetValue(nID) # FIXME : this is needed so save_request_ID knows about the lab self.lab = data
def on_lab_selected(self, data): if data is None: self.fld_request_id.SetValue('') return None # propose new request id nID = gmPathLab.get_next_request_ID(int(data)) if not nID is None: # set field to that self.fld_request_id.SetValue(nID) # FIXME : this is needed so save_request_ID knows about the lab self.lab = data