interaction/infector/views/network.py

18 lines
426 B
Python
Raw Permalink Normal View History

2024-10-02 19:35:12 +00:00
__author__ = 'RemiZOffAlex'
__email__ = 'remizoffalex@mail.ru'
import npyscreen
class NetworkView(npyscreen.ActionForm):
def create(self):
self.ip = self.add(npyscreen.TitleText, name = "IP:",)
self.mask = self.add(npyscreen.TitleText, name = "Netmask:",)
self.gateway = self.add(npyscreen.TitleText, name = "Gateway:",)
def on_cancel(self):
pass
def on_ok(self):
pass