コード例 #1
0
ファイル: gmLabWidgets.py プロジェクト: sk/gnumed
	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
コード例 #2
0
 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