def scanDevices(self):
""" Start 2 threads, one for scanning devices and other for displaying device list on UI
"""
self.counter = self.counter + 1
deviceListChangedEvent = threading.Event()
threadToScanDevices = threading.Thread(target=test_ssdp.main, args=(self.getHostIP(), self.counter, deviceListChangedEvent,))
threadToScanDevices.setDaemon(True)
threadToScanDevices.start()
threadToDisplayDevices = threading.Thread(target=self.displayDevices, args=(deviceListChangedEvent,))
threadToDisplayDevices.setDaemon(True)
threadToDisplayDevices.start()
self.scan.setEnabled(False)
self.cw.btnPushProfile.setEnabled(False)
如何使這個代碼pylint的正確嗎?使此代碼pylint的正確
錯誤 - 行太長
請將'self.getHostIP()'後的整個錯誤 – juankysmith
粘貼到下一行(按Enter鍵)。它仍包含在'()'是如此蟒蛇將把它作爲一個單一的代碼行。 – CasualDemon
@CasualDemon什麼關於下一行縮進? ü可以請編寫代碼 – Patrick