예제 #1
0
 def validate_selected_code(self):
     """
     Validate the selected code for the presence of Code or not.
     """
     self.notice.clear()
     self.selected_code_value()
     if self.selected_code == '':
         notice = QApplication.tr(self, 'The selected value has no code.')
         self.notice.insertWarningNotification(notice)