widget.py 452 B

1234567891011121314151617181920212223242526
  1. # -*- coding: utf-8 -*-
  2. class Widget:
  3. _PosX =0
  4. _PosY = 0
  5. _Width = 0
  6. _Height = 0
  7. def __init__(self):
  8. pass
  9. def NewCoord(self,x,y):
  10. self._PosX = x
  11. self._PosY = y
  12. def Coord(self):
  13. return self._PosX,self._PosY
  14. def Width(self):
  15. return self._Width
  16. def Height(self):
  17. return self._Height
  18. def Size(self):
  19. return self._Width,self._Height