コード例 #1
0
ファイル: valves.py プロジェクト: NMGRL/pychron
    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
ファイル: valves.py プロジェクト: stephen-e-cox/pychron
    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)