Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. class Figure:
  2.     def __init__(self, x, y, f_color, b_color):
  3.         self.x = x
  4.         self.y = y
  5.         self.fill_color = f_color
  6.         self.border_color = b_color
  7.  
  8.  
  9.     def show(self):
  10.         pass
  11.  
  12.  
  13.     def hide(self):
  14.         pass
  15.  
  16.  
  17.     def move(self, delta_x, delta_y):
  18.         self.show()
  19.         pause(100)
  20.         self.hide()
  21.         self.x += delta_x
  22.         self.y += delta_y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement