sys_default.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. show_uid_len = 12 # 展示uid的长度
  15. about_info = f'''
  16. HGSSystem is Garbage Sorting System
  17. HGSSystem 版权归属 SuperHuan
  18. 作者: SongZihuan[SuperHuan]
  19. 项目托关于 Github 平台
  20. '''.strip()
  21. class ConfigSystemTest(ConfigSystemRelease):
  22. search_reset_time = 1 # 搜索间隔的时间
  23. about_info = f'''
  24. HGSSystem is Garbage Sorting System
  25. HGSSystem 版权归属 SuperHuan
  26. 作者: SongZihuan[SuperHuan]
  27. 开发者模式
  28. 项目托关于 Github 平台
  29. '''.strip()
  30. class ConfigTkinterRelease:
  31. tk_refresh_delay = 50 # 延时任务的时间
  32. tk_second_win_bg = "#fffffb" # tkinter 第二窗口 标准颜色
  33. tk_win_bg = "#F0FFF0" # tkinter 一般窗口 标准颜色 蜜瓜绿
  34. tk_btn_bg = "#dcdcdc" # tkinter 按钮 标准颜色
  35. ConfigTkinter = ConfigTkinterRelease
  36. ConfigSystem = ConfigSystemTest if p_args['run'] == 'test' else ConfigSystemRelease
  37. ConfUser = ConfUserRelease
  38. ConfigSecret = ConfigSecretRelease