利用pyside2实现带界面的局域网IP扫描工具
from PySide2.QtWidgets import QApplication, QMessageBox
from PySide2.QtUiTools import QUiLoader
from PySide2.QtCore import QFile, QObject, Signal
from PySide2.QtGui import QIcon
import os
import time
import subprocess
from concurrent.futures import ThreadPoolExecutor
from threading import Thread
# 此处! 需要新建一个继承直QObject类的Singal类实现子线程任务更新到UI线程
# 基本上都是固定写法
class MySingles(QObject):
text_print = Signal(str)
class IPScan(QObject):
def __init__(self):
QObject.__init__(self)
qfile = QFile('IP_SCAN.ui')
qfile.open(QFile.ReadOnly)
qfile.close()
self.ui = QUiLoader().load(qfile)
# 发送
self.ui.Sendbutton.setStyleSheet(

最低0.47元/天 解锁文章
509

被折叠的 条评论
为什么被折叠?



