コード例 #1
0
 def __init__(self, signal_list, dev, buf, rect, **kwds):
     """
     Initialize the renderer with the signal_name to index mapping
     (always all 14 signals).  The measurement device, the signal
     buffer and the rectangle into which the signals are to be rendered.
     To select shown signals, use select_channels.
     """
     Widget.__init__(self, rect, **kwds)
     self.sig_list = signal_list
     self.dev = dev
     self.buf = buf
     self.font = pygame.font.SysFont("Ubuntu", 20, True)
     self.cq_font = pygame.font.SysFont("Ubuntu", 16, True)
     self.multiplier = 1.0
     self.selected = range(14)
     self.display_type = [0] * 14
コード例 #2
0
ファイル: music.py プロジェクト: shaik9/rdrive
 def __init__(self, **kwds):
     Widget.__init__(self, Rect((0, 0), (100, 20)), **kwds)
コード例 #3
0
 def __init__(self, board_screen):
     self.pyge = board_screen.pyge
     Widget.__init__(self)
     self.rect = board_screen.rect.inflate(-100, -100)
コード例 #4
0
 def __init__(self, width, client, **kwds):
     Widget.__init__(self, **kwds)
     self.set_size_for_text(width)
     self.client = client
コード例 #5
0
 def __init__(self, width, client, **kwds):
     Widget.__init__(self, **kwds)
     self.set_size_for_text(width)
     self.client = client
コード例 #6
0
ファイル: music.py プロジェクト: codewarrior0/mcedit
 def __init__(self, **kwds):
     Widget.__init__(self, Rect((0, 0), (100, 20)), **kwds)
コード例 #7
0
	def __init__(self, signal_list, buf, rect, **kwds):
		Widget.__init__(self, rect, **kwds)
                self.sig_list = signal_list
                self.buf = buf
コード例 #8
0
ファイル: gui.py プロジェクト: AnnanFay/pyge-solitaire
 def __init__(self, board_screen):
     self.pyge = board_screen.pyge
     Widget.__init__(self)
     self.rect = board_screen.rect.inflate(-100, -100)