Passed
Pull Request — master (#21)
by Matt
03:47 queued 01:54
created

Part.design_render()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
"""
2
 *  PyDMXControl: A Python 3 module to control DMX using uDMX.
3
 *                Featuring fixture profiles, built-in effects and a web control panel.
4
 *  <https://github.com/MattIPv4/PyDMXControl/>
5
 *  Copyright (C) 2018 Matt Cowley (MattIPv4) ([email protected])
6
"""
7
8
from .._screen import Screen
9
10
11
class Part:
12
13
    def __init__(self):
14
        self._x = 0
15
        self._y = 0
16
17
    def set_pos(self, x: int, y: int):
18
        self._x = int(x)
19
        self._y = int(y)
20
21
    def design_render(self, screen: Screen):
22
        pass
23