sys_default.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. from args import p_args
  2. class ConfigSecretRelease:
  3. passwd_salt = p_args['app_secret']
  4. wtf_secret = p_args['app_secret']
  5. class ConfUserRelease:
  6. default_score = 10
  7. default_reputation = 300
  8. max_rubbish_week = 34
  9. limit_rubbish_week = 50
  10. max_score = 500 # 积分上限为500分
  11. class ConfigSystemRelease:
  12. base_location = "Guangdong-KZ"
  13. search_reset_time = 10 # 搜索间隔的时间
  14. about_info = f'''
  15. HGSSystem is Garbage Sorting System
  16. HGSSystem 版权归属 SuperHuan
  17. 作者: SongZihuan[SuperHuan]
  18. 项目托关于 Github 平台
  19. '''.strip()
  20. class ConfigSystemDebug(ConfigSystemRelease):
  21. search_reset_time = 1 # 搜索间隔的时间
  22. about_info = f'''
  23. HGSSystem is Garbage Sorting System
  24. HGSSystem 版权归属 SuperHuan
  25. 作者: SongZihuan[SuperHuan]
  26. 开发者模式
  27. 项目托关于 Github 平台
  28. '''.strip()
  29. class ConfigExportRelease:
  30. qr_show_uid_len = 12 # qr 码上展示uid的长度
  31. class ConfigTkinterRelease:
  32. tk_refresh_delay = 50 # 延时任务的时间
  33. tk_show_uid_len = ConfigExportRelease.qr_show_uid_len # tk 界面上展示uid的长度
  34. ranking_tk_show_uid_len = tk_show_uid_len # tk ranking 界面上展示uid的长度
  35. tk_second_win_bg = "#fffffb" # tkinter 第二窗口 标准颜色
  36. tk_win_bg = "#F0FFF0" # tkinter 一般窗口 标准颜色 蜜瓜绿
  37. tk_btn_bg = "#dcdcdc" # tkinter 按钮 标准颜色
  38. ConfigTkinter = ConfigTkinterRelease
  39. ConfigExport = ConfigExportRelease
  40. ConfigSystem = ConfigSystemDebug if p_args['run'] == 'Debug' else ConfigSystemRelease
  41. ConfUser = ConfUserRelease
  42. ConfigSecret = ConfigSecretRelease