Exemplo n.º 1
0
 def initWithFrame_(self, frame):
     self.backgroundColor = NSColor.blackColor()
     self.graphColor = NSColor.whiteColor()
     self.maxRssiColor = self.graphColor.colorWithAlphaComponent_(0.8)
     self._last_ts = None
     self._last_display = None
     self._rssi_values = []
     self._max_rssi = 0
     self._capture = None
     self._retained_samples = self.RETAINED_SAMPLES_START
     self._filtered_value_per_second = self.SAMPLEERATE
     return super(LaptimerView, self).initWithFrame_(frame)
Exemplo n.º 2
0
 def initWithFrame_(self, frame):
     self.backgroundColor = NSColor.blackColor()
     self.barColor = NSColor.whiteColor()
     self.channelValues = [0] * self.CHANNELS
     return super(ScanView, self).initWithFrame_(frame)