@@ -90,7 +90,7 @@ def __init__(self, x, y, width, height, r, *, fill=None, outline=None, stroke=1)
90
90
# draw round corners
91
91
self ._helper (r , r , r , color = 1 , stroke = stroke ,
92
92
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 )
94
94
95
95
# pylint: disable=invalid-name, too-many-locals, too-many-branches
96
96
def _helper (self , x0 , y0 , r , * , color , x_offset = 0 , y_offset = 0 ,
@@ -164,24 +164,3 @@ def outline(self, color):
164
164
self ._palette .make_transparent (1 )
165
165
else :
166
166
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