Changeset 329
- Timestamp:
- 03/21/12 12:34:26 (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Puzzlebox/Synapse/Interface.py
r328 r329 10 10 11 11 __changelog__ = """\ 12 Last Update: 2012.03. 1212 Last Update: 2012.03.21 13 13 """ 14 14 … … 115 115 class QtUI(QtGui.QWidget, Design): 116 116 117 def __init__(self, log, server=None, DEBUG=DEBUG, parent = None): 117 def __init__(self, log, \ 118 server=None, \ 119 DEBUG=DEBUG, \ 120 parent=None, \ 121 embedded_mode=False): 118 122 119 123 self.log = log 120 124 self.DEBUG = DEBUG 121 125 self.parent=parent 126 self.embedded_mode=embedded_mode 122 127 123 128 if self.parent == None: … … 481 486 def processPacketThinkGear(self, packet): 482 487 483 if self.DEBUG > 2:484 print packet488 #if self.DEBUG > 2: 489 #print packet 485 490 486 491 … … 1163 1168 target = self.parent 1164 1169 1170 1165 1171 (date, localtime) = self.parseTimeStamp(time.time()) 1166 1172 … … 1265 1271 for packet in source.packets['signals']: 1266 1272 1273 1267 1274 if 'rawEeg' in packet.keys(): 1268 1275 continue 1269 1276 1270 1277 if packet['timestamp'] not in csv.keys(): 1278 1279 if 'blinkStrength' in packet.keys(): 1280 # Skip any blink packets from log 1281 continue 1282 1271 1283 1272 1284 #print packet -
trunk/Puzzlebox/Synapse/Server.py
r313 r329 1 1 # -*- coding: utf-8 -*- 2 2 3 # Copyright Puzzlebox Productions, LLC (2010-201 1)3 # Copyright Puzzlebox Productions, LLC (2010-2012) 4 4 # 5 5 # This code is released under the GNU Pulic License (GPL) version 2 … … 9 9 10 10 __changelog__ = """\ 11 Last Update: 201 1.12.0611 Last Update: 2012.03.21 12 12 """ 13 13 … … 575 575 THINKGEAR_MEDITATION_MULTIPLIER 576 576 577 578 value = int(value) 579 580 577 581 if value < 0: 578 582 value = 0 … … 617 621 self.sendPacketQueue() 618 622 619 #if (self.parent != None):620 #self.parent.processPacketThinkGear(self.protocol.data_packet)623 if (self.parent != None): 624 self.parent.processPacketThinkGear(self.protocol.data_packet) 621 625 622 626 … … 630 634 self.packet_queue.append(packet) 631 635 632 if (self.parent != None):633 self.parent.processPacketThinkGear(packet)636 #if (self.parent != None): 637 #self.parent.processPacketThinkGear(packet) 634 638 635 639 # Include simulated blinks at desired frequency -
trunk/synapse-gui.py
r307 r329 2 2 # -*- coding: utf-8 -*- 3 3 4 # Copyright Puzzlebox Productions, LLC (2010-201 1)4 # Copyright Puzzlebox Productions, LLC (2010-2012) 5 5 # 6 6 # This code is released under the GNU Pulic License (GPL) version 2 7 7 # For more information please refer to http://www.gnu.org/copyleft/gpl.html 8 9 __changelog__ = """\ 10 Last Update: 2012.03.13 11 """ 8 12 9 13 import Puzzlebox.Synapse.Configuration as configuration … … 29 33 log = None 30 34 app = QtGui.QApplication(sys.argv) 31 window = tgInterface.QtUI(log, configuration.DEBUG) 35 window = tgInterface.QtUI( \ 36 log=log, \ 37 DEBUG=configuration.DEBUG, \ 38 embedded_mode=False) 32 39 window.show() 33 40 sys.exit(app.exec_())
Note: See TracChangeset
for help on using the changeset viewer.