(self, screen, name, i, old_model=False)
Initializes graph worker
Initializes graph worker
Initializes graph worker
def __init__(self, screen, name, i, old_model=False):
        """
        Initializes graph worker
        """
        self.screen = screen
        self.name = name
        self.range = float(1 << 13)
        self.x_offset = 40
        self.y = i * gheight
        self.buffer = []
        font = pygame.font.Font(None, 24)
        self.text = font.render(self.name, 1, (255, 0, 0))
        self.text_pos = self.text.get_rect()
        self.text_pos.centery = self.y + gheight
        self.first_packet = True
        self.y_offset = 0
        self.old_model = old_model
def __init__ ( self , screen , name , i , old_model = False ) : self . screen = screen self . name = name self . range = float ( 1 << 13 ) self . x_offset = 40 self . y = i * gheight self . buffer = [ ] font = pygame . font . Font ( None , 24 ) self . text = font . render ( self . name , 1 , ( 255 , 0 , 0 ) ) self . text_pos = self . text . get_rect ( ) self . text_pos . centery = self . y + gheight self . first_packet = True self . y_offset = 0 self . old_model = old_model