Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. class OKIENKO1(Window):
  2. def __init__(self):
  3. Window.__init__(self)
  4. Board = ExpandedImageBox()
  5. Board.SetParent(self)
  6. Board.Show()
  7.  
  8. titleName = TextLine()
  9. titleName.SetParent(Board)
  10. titleName.SetPosition(0, 4)
  11. titleName.SetWindowHorizontalAlignCenter()
  12. titleName.SetHorizontalAlignCenter()
  13. titleName.Show()
  14.  
  15. self.Board = Board
  16. self.titleName = titleName
  17.  
  18. def __del__(self):
  19. Window.__del__(self)
  20. self.Board = None
  21. self.titleName = None
  22.  
  23. def SetImage(self, image):
  24. self.Board.LoadImage(image)
  25.  
  26. def SetSize(self, width, height):
  27. self.Board.SetSize(width, height)
  28. self.titleName.UpdateRect()
  29.  
  30. def SetTitleColor(self, color):
  31. self.titleName.SetPackedFontColor(color)
  32.  
  33. def SetTitleName(self, name):
  34. self.titleName.SetText(name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement