@@ -90,7 +90,7 @@ def __init__(self, x, y, width, height, r, *, fill=None, outline=None, stroke=1)
9090 # draw round corners
9191 self ._helper (r , r , r , color = 1 , stroke = stroke ,
9292 x_offset = width - 2 * r - 1 , y_offset = height - 2 * r - 1 )
93- super ().__init__ (self ._bitmap , pixel_shader = self ._palette , position = ( x , y ) )
93+ super ().__init__ (self ._bitmap , pixel_shader = self ._palette , x = x , y = y )
9494
9595 # pylint: disable=invalid-name, too-many-locals, too-many-branches
9696 def _helper (self , x0 , y0 , r , * , color , x_offset = 0 , y_offset = 0 ,
@@ -164,24 +164,3 @@ def outline(self, color):
164164 self ._palette .make_transparent (1 )
165165 else :
166166 self ._palette [1 ] = color
167-
168-
169- @property
170- def x (self ):
171- """The x coordinate of the position"""
172- return self .position [0 ]
173-
174- @x .setter
175- def x (self , x ):
176- # pylint: disable=attribute-defined-outside-init
177- self .position = (x , self .position [1 ])
178-
179- @property
180- def y (self ):
181- """The y coordinate of the position"""
182- return self .position [1 ]
183-
184- @y .setter
185- def y (self , y ):
186- # pylint: disable=attribute-defined-outside-init
187- self .position = (self .position [0 ], y )
0 commit comments