def init_warn(self):
warnings = ''
if not len(cm.rates):
warnings += 'Currency information is empty because the server returned no data. ' \
'Currency rates will be 0 unless set manually.\n'
if not len(fm.autoFilters):
warnings += 'Filters were not generated because the server returned no data.\n'
if warnings:
warnings += '\nYou can either continue in this mode or restart the application if you wish to try again.'
messagebox.showwarning('Warning', warnings, parent=self)
评论列表
文章目录