vulcanboard.kv 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <ErrorPopup@Popup>:
  2. message: message
  3. auto_dismiss: False
  4. title: "Error"
  5. size_hint: None, None
  6. width: grid.width + dp(25)
  7. height: grid.height + root.title_size + dp(48)
  8. GridLayout:
  9. id: grid
  10. size_hint: None, None
  11. size: self.minimum_size
  12. padding: [10, 5]
  13. cols: 1
  14. AnchorLayout:
  15. anchor_x: "center"
  16. anchor_y: "bottom"
  17. size_hint: None, None
  18. height: message.height
  19. width: max(message.width, butt.width)
  20. Label:
  21. id: message
  22. size_hint: None, None
  23. size: self.texture_size
  24. padding: [10, 5]
  25. AnchorLayout:
  26. anchor_x: "center"
  27. anchor_y: "bottom"
  28. size_hint: None, None
  29. height: butt.height
  30. width: max(message.width, butt.width)
  31. Button:
  32. id: butt
  33. text: 'Close'
  34. size_hint: None, None
  35. size: self.texture_size
  36. padding: [10, 5]
  37. on_release: root.error_exit();