Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class OKIENKO1(Window):
- def __init__(self):
- Window.__init__(self)
- Board = ExpandedImageBox()
- Board.SetParent(self)
- Board.Show()
- titleName = TextLine()
- titleName.SetParent(Board)
- titleName.SetPosition(0, 4)
- titleName.SetWindowHorizontalAlignCenter()
- titleName.SetHorizontalAlignCenter()
- titleName.Show()
- self.Board = Board
- self.titleName = titleName
- def __del__(self):
- Window.__del__(self)
- self.Board = None
- self.titleName = None
- def SetImage(self, image):
- self.Board.LoadImage(image)
- def SetSize(self, width, height):
- self.Board.SetSize(width, height)
- self.titleName.UpdateRect()
- def SetTitleColor(self, color):
- self.titleName.SetPackedFontColor(color)
- def SetTitleName(self, name):
- self.titleName.SetText(name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement