##// END OF EJS Templates
added int ElfFile::getSymbolIndex(const QString &name)
jeandet -
r86:22540a7bc8cf default
parent child
Show More
@@ -1,4 +1,5
1 #!/usr/bin/lppmon -e
1 #!/usr/bin/lppmon -e
2
2 3
3 4 class test(PySocExplorerEngine.socexplorerplugin):
4 5 m_Layout = QtGui.QGridLayout()
@@ -9,23 +10,27 class test(PySocExplorerEngine.socexplor
9 10 m_writeQPB = QtGui.QPushButton("write")
10 11
11 12 def postInstantiationTrigger(self):
12 print "building GUI"
13 print("building GUI")
13 14 self.setWidget(self.m_CenterWidget)
14 15 self.m_CenterWidget.setLayout(self.m_Layout)
15 self.m_Layout.addWidget(self.m_addressQSPB,0,0,1,1)
16 self.m_Layout.addWidget(self.m_readQPB,0,1,1,1)
17 self.m_Layout.addWidget(self.m_writeQPB,0,2,1,1)
18 self.m_Layout.addWidget(self.m_hexviewer,1,0,1,-1)
16 self.m_Layout.addWidget(self.m_addressQSPB, 0, 0, 1, 1)
17 self.m_Layout.addWidget(self.m_readQPB, 0, 1, 1, 1)
18 self.m_Layout.addWidget(self.m_writeQPB, 0, 2, 1, 1)
19 self.m_Layout.addWidget(self.m_hexviewer, 1, 0, 1, -1)
20
19 21 def hello(self):
20 print "hello"
22 print("hello")
23
21 24 def VID(self):
22 25 return 10
26
23 27 def PID(self):
24 28 return 100
29
25 30 def readData(self):
26 31 bufferQBA = QtCore.QByteArray()
27 buffer = self.parentPlugin().Read(self.m_addressQSPB.value,16*1024)
28 for i in range(0,16*1024):
32 buffer = self.parentPlugin().Read(self.m_addressQSPB.value, 16*1024)
33 for i in range(0, 16*1024):
29 34 bufferQBA.append(int(buffer[i]))
30 35 bufferQBA.append(int(buffer[i]))
31 36 bufferQBA.append(int(buffer[i]))
General Comments 0
You need to be logged in to leave comments. Login now