mirror of
https://github.com/20kaushik02/AUNMS---Network-Monitoring-System.git
synced 2025-12-06 09:04:06 +00:00
Ping Template
This commit is contained in:
parent
fb11bd65eb
commit
3210792723
28
ping.py
Normal file
28
ping.py
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import sys
|
||||||
|
from PyQt5.QtGui import *
|
||||||
|
from PyQt5.QtCore import *
|
||||||
|
from PyQt5.QtWidgets import *
|
||||||
|
from scapy.all import *
|
||||||
|
|
||||||
|
class Ping(QWidget):
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__()
|
||||||
|
|
||||||
|
|
||||||
|
self.hostn = QLabel("Enter Address/Hostname to ping:")
|
||||||
|
self.host = QLineEdit()
|
||||||
|
|
||||||
|
self.startPingBtn = QPushButton()
|
||||||
|
self.startPingBtn.setText('Ping')
|
||||||
|
self.startPingBtn.clicked.connect(self.startPing)
|
||||||
|
|
||||||
|
self.result = QTextEdit()
|
||||||
|
self.layoutPing = QVBoxLayout(self)
|
||||||
|
self.layoutPing.addWidget(self.hostn)
|
||||||
|
self.layoutPing.addWidget(self.host)
|
||||||
|
self.layoutPing.addWidget(self.startPingBtn)
|
||||||
|
self.layoutPing.addWidget(self.result)
|
||||||
|
self.setLayout(self.layoutPing)
|
||||||
|
|
||||||
|
def startPing():
|
||||||
|
pass
|
||||||
Loading…
x
Reference in New Issue
Block a user