Add views
This commit is contained in:
parent
8ce90f44b7
commit
581e59f074
2
infector/views/__init__.py
Normal file
2
infector/views/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
__author__ = 'RemiZOffAlex'
|
||||
__email__ = 'remizoffalex@mail.ru'
|
||||
17
infector/views/network.py
Normal file
17
infector/views/network.py
Normal file
@ -0,0 +1,17 @@
|
||||
__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
|
||||
Loading…
Reference in New Issue
Block a user