def use_rgb_check_box_fun(self, use_rgb_check_box): print("{}被操作,其操作状态时{}".format(use_rgb_check_box.text(), use_rgb_check_box.checkState())) if use_rgb_check_box.checkState() == Qt.Checked: update_setting(1, 'use_rgb') else: update_setting(0, 'use_rgb')
def open_image_check_box_fun(self, open_image_check_box): print('{} was clicked, and its current state is {}'.format(open_image_check_box.text(), open_image_check_box.checkState())) if open_image_check_box.checkState() == Qt.Checked: update_setting(1, 'auto_open_image') else: update_setting(0, 'auto_open_image')
def open_paste_check_box_fun(self, open_paste_check_box): print("{}被操作,其操作状态时{}".format(open_paste_check_box.text(), open_paste_check_box.checkState())) if open_paste_check_box.checkState() == Qt.Checked: update_setting(1, 'auto_check_paste') else: update_setting(0, 'auto_check_paste')
def file_address_button_fun(self, file_address_edit): file_address = file_address_edit.text() print(file_address) update_setting(file_address, 'file_local_save_name')
def ass_number_button_fun(self, ass_number_edit): ass_number = ass_number_edit.text() print(ass_number) update_setting(ass_number, 'device_name')
def port_button_fun(self, port_edit): server_port = port_edit.text() print(server_port) update_setting(server_port, 'port')
def remove_ip_button_fun(self, remove_ip_edit): server_address = remove_ip_edit.text() print(server_address) update_setting(server_address, 'remove_ip')
def ip_button_fun(self, ip_edit): server_address = ip_edit.text() print(server_address) update_setting(server_address, 'ip')