Пример #1
0
    def _draw_owned(self, gc):
        if self.owned:
            with gc:
                gc.set_fill_color((0, 0, 0, 0))
                gc.set_stroke_color((0, 0, 0))
                gc.set_line_width(5)

                x, y = self.get_xy()
                width, height = self.get_wh()
                corner_radius = 3
                rounded_rect(gc, x, y, width, height, corner_radius)
Пример #2
0
    def _draw_owned(self, gc):
        if self.owned:
            with gc:
                gc.set_fill_color((0, 0, 0, 0))
                gc.set_stroke_color((0, 0, 0))
                gc.set_line_width(5)

                x, y = self.get_xy()
                width, height = self.get_wh()
                corner_radius = 3
                rounded_rect(gc, x, y, width, height, corner_radius)