示例#1
0
    def __init__(self, parent=None):
        super(PictureView, self).__init__(parent)
        self.setupUi(self)
        self.dlg = MessageView()
        self.dlg.show()
        self.button_list = [
            self.dlg.pushButton_0, self.dlg.pushButton_1,
            self.dlg.pushButton_2, self.dlg.pushButton_3,
            self.dlg.pushButton_4, self.dlg.pushButton_5
        ]
        self.code_list = ["", "", "", "", "", ""]
        for button in self.button_list:
            button.move(BUTTON_NONE_X, button.y())
        self.dlg.pushButton_0.clicked.connect(lambda: setfocus.open_code(
            self.code_list[0], self.window_info, self.dlg))
        self.dlg.pushButton_1.clicked.connect(lambda: setfocus.open_code(
            self.code_list[1], self.window_info, self.dlg))
        self.dlg.pushButton_2.clicked.connect(lambda: setfocus.open_code(
            self.code_list[2], self.window_info, self.dlg))
        self.dlg.pushButton_3.clicked.connect(lambda: setfocus.open_code(
            self.code_list[3], self.window_info, self.dlg))
        self.dlg.pushButton_4.clicked.connect(lambda: setfocus.open_code(
            self.code_list[4], self.window_info, self.dlg))
        self.dlg.pushButton_5.clicked.connect(lambda: setfocus.open_code(
            self.code_list[5], self.window_info, self.dlg))
        self.window_info = setfocus.init_fs()

        self.timer = QTimer(self)
        self.timer.timeout.connect(self.checkall)

        self.i = 0
        self.b1_v_prev = dict()
        self.broken_signal = dict()
        self.codes = []
        self.timer.start(INTERVAL)
        self.started = False
示例#2
0
 def click_code(self, code_slot):
     setfocus.open_code(self.code_list[code_slot], self.window_info)
     self.recent_codes.append(self.code_list[code_slot])
     self.clear_signals.append(self.code_list[code_slot])
     self.replay_code = self.code_list[code_slot]
示例#3
0
 def replay(self):
     setfocus.open_code(self.replay_code, self.window_info)
示例#4
0
 def bid5(self):
     setfocus.open_code('.-5', self.window_info)
示例#5
0
 def bid4(self):
     setfocus.open_code('.-4', self.window_info)
示例#6
0
 def bid3(self):
     setfocus.open_code('.-3', self.window_info)
示例#7
0
 def bid2(self):
     setfocus.open_code('.-2', self.window_info)
示例#8
0
 def bid1(self):
     setfocus.open_code('.-1', self.window_info)
示例#9
0
 def ask1(self):
     setfocus.open_code('.+1', self.window_info)
示例#10
0
 def ask2(self):
     setfocus.open_code('.+2', self.window_info)
示例#11
0
 def ask3(self):
     setfocus.open_code('.+3', self.window_info)
示例#12
0
 def ask4(self):
     setfocus.open_code('.+4', self.window_info)
示例#13
0
 def ask5(self):
     setfocus.open_code('.+5', self.window_info)