gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 line
1.3KB

  1. ##########################################################################
  2. #
  3. # pgAdmin 4 - PostgreSQL Tools
  4. #
  5. # Copyright (C) 2013 - 2020, The pgAdmin Development Team
  6. # This software is released under the PostgreSQL Licence
  7. #
  8. ##########################################################################
  9. PRIORITY = 100
  10. class MenuItem(object):
  11. def __init__(self, **kwargs):
  12. self.__dict__.update(**kwargs)
  13. class Panel(object):
  14. def __init__(
  15. self, name, title, content='', width=500, height=600, **kwargs
  16. ):
  17. self.name = name
  18. self.title = title
  19. self.content = content
  20. self.width = width
  21. self.height = height
  22. self.isIframe = kwargs.get('is_iframe', True)
  23. self.showTitle = kwargs.get('show_title', True)
  24. self.isCloseable = kwargs.get('is_closeable', True)
  25. self.isPrivate = kwargs.get('is_private', None)
  26. self.icon = kwargs.get('icon', None)
  27. self.data = kwargs.get('data', None)
  28. self.events = kwargs.get('events', None)
  29. self.limit = kwargs.get('limit', False)
  30. self.canHide = kwargs.get('can_hide', False)
  31. priority = kwargs.get('priority', None)
  32. if priority is None:
  33. global PRIORITY
  34. PRIORITY += 100
  35. priority = PRIORITY
  36. self.priority = priority
上海开阖软件有限公司 沪ICP备12045867号-1