Skip to content

Commit

Permalink
rename controler
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-007 authored and Peter-007 committed Jun 9, 2018
1 parent 3ee2c9a commit 410f7a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Find_Tx.py → Controler.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import RPi.GPIO as GPIO
import serial, time

class Tx():
class Controler():
def __init__(self):
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
Expand Down Expand Up @@ -33,7 +33,7 @@ def FindID(self, strID):


if __name__ == '__main__':
tx = Tx()
tx = Controler()
tx.FindID('0001')
tx.FindID('0002')
tx.FindID('0003')
Expand Down
9 changes: 4 additions & 5 deletions FindFeeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
QPushButton,QTreeWidget,QTreeWidgetItem,QTreeWidgetItemIterator,
QStyledItemDelegate,QTabWidget,
QCheckBox, QTableWidget, QTableWidgetItem,QVBoxLayout, QWidget)
import Feeders #,Find_Tx
import Feeders ,Controler

class FindFeeder(QWidget):
def __init__(self, parent = None):
Expand Down Expand Up @@ -153,10 +153,9 @@ def Locate(self):
child.setText(2, '无法定位')
else:
child.setText(2, '已定位')
# strRfID = self.editRfID.text()
# tx = Find_Tx.Tx()
# tx.FindID(strRfID)
# del tx
strRfID = child.text(1)
finder = Controler.Controler()
finder.FindID(strRfID)

def removeID(self):
flag = True
Expand Down

0 comments on commit 410f7a1

Please sign in to comment.