def __build_fail_label(self, failed_search_s): ''' builds and returns the 'search failed' text label for this form. if there is no failed search terms, this returns None. ''' label = Label() label.UseMnemonic = False label.Location = Point(10, 10) label.Size = Size(415, 100) label.Visible = self.__fail_label_is_visible if self.__fail_label_is_visible: label.Text = i18n.get("SeriesSearchFailedText").format(failed_search_s) return label
def __build_fail_label(self, failed_search_s): ''' builds and returns the 'search failed' text label for this form. if there is no failed search terms, this returns None. ''' label = Label() label.UseMnemonic = False label.Location = Point(10, 10) label.Size = Size(415, 100) label.Visible = self.__fail_label_is_visible if self.__fail_label_is_visible: label.Text = i18n.get("SeriesSearchFailedText").format( failed_search_s) return label