super bare skeleton
This commit is contained in:
43
aif_gen/config/generator/subsections/storage/__init__.py
Normal file
43
aif_gen/config/generator/subsections/storage/__init__.py
Normal file
@@ -0,0 +1,43 @@
|
||||
from . import block
|
||||
from . import luks
|
||||
from . import lvm
|
||||
from . import mdadm
|
||||
from . import filesystem
|
||||
from . import mount
|
||||
|
||||
import tkinter
|
||||
##
|
||||
import aif_gen.config.generator.utils as utils
|
||||
|
||||
|
||||
class Obj(object):
|
||||
def __init__(self, xmlroot, tkroot):
|
||||
self.xml = xmlroot
|
||||
self.root = tkroot
|
||||
self.frame = tkinter.LabelFrame(self.root, text = 'STORAGE',
|
||||
bd = 1, relief = tkinter.RAISED,
|
||||
font = ('Arial Bold', 15))
|
||||
# self.frame.grid(column = 0, row = 0)
|
||||
self.frame.pack(side = 'top', fill = 'both', expand = True)
|
||||
self.vals = {}
|
||||
self.block()
|
||||
|
||||
def block(self):
|
||||
frame = tkinter.LabelFrame(self.frame, text = 'BLOCK',
|
||||
bd = 1, relief = tkinter.RAISED,
|
||||
font = ('Arial Bold', 12))
|
||||
frame.pack(side = 'top', fill = 'both', expand = True)
|
||||
# Version entry
|
||||
self.vals['block'] = tkinter.Entry(frame)
|
||||
utils.CreateToolTip(self.vals['block'], 'Path to a disk ("block") device to partition')
|
||||
self.vals['block'].insert(0, '/dev/sda')
|
||||
self.vals['block'].pack(side = 'top', fill = 'both', expand = True)
|
||||
return()
|
||||
|
||||
def new(self):
|
||||
pass
|
||||
return()
|
||||
|
||||
def save(self):
|
||||
pass
|
||||
return()
|
||||
0
aif_gen/config/generator/subsections/storage/lvm.py
Normal file
0
aif_gen/config/generator/subsections/storage/lvm.py
Normal file
Reference in New Issue
Block a user