def __init__(self, cfg, parent): self.part_manual = particion_manual.Main(cfg, parent) self.particion = cfg['particion'] self.disco = self.particion[:-1] self.num = self.particion[-1:] self.ini = cfg['inicio'] self.fin = cfg['fin'] self.nuevo_fin = cfg['nuevo_fin'] self.total = int(gen.kb(self.fin)) - int(gen.kb(self.nuevo_fin)) self.root_p2 = gen.hum(gen.part_root1(self.total)) self.root_p3 = gen.hum(gen.part_root2(self.total)) self.usr = gen.hum(gen.part_root1(self.total)) self.swap = cfg['swap'] self.fs = cfg['fs'] self.par = parent
def __init__(self, cfg): super(Main, self).__init__() self.set_events(gtk.gdk.POINTER_MOTION_MASK | gtk.gdk.POINTER_MOTION_HINT_MASK | gtk.gdk.BUTTON_PRESS_MASK | gtk.gdk.BUTTON_RELEASE_MASK) self.connect("expose-event", self.expose) self.disco = cfg[0] self.ini = int(float(cfg[1])) self.fin = int(float(cfg[2])) self.swap = int(float(cfg[3])) self.metodo = cfg[4] self.total = int(self.fin - self.ini) self.root1 = gen.hum(gen.part_root1(self.total)) self.root2 = gen.hum(gen.part_root2(self.total)) self.usr = gen.hum(gen.part_root1(self.total))
def __init__(self, cfg, parent, vacio=False): self.cfg = cfg self.disco = cfg['disco'] self.par = parent self.lista = self.part.lista_particiones(self.disco) self.root_p2 = gen.hum(gen.part_root1(self.lista[0][9])) self.root_p3 = gen.hum(gen.part_root2(self.lista[0][9])) self.usr = gen.hum(gen.part_root1(self.lista[0][9])) self.vacio = vacio try: self.ini = cfg['inicio'] except: self.ini = 0 try: self.fin = cfg['fin'] except: self.fin = 0
def __init__(self, cfg): super(Main, self).__init__() self.set_events( gtk.gdk.POINTER_MOTION_MASK | gtk.gdk.POINTER_MOTION_HINT_MASK | gtk.gdk.BUTTON_PRESS_MASK | gtk.gdk.BUTTON_RELEASE_MASK ) self.connect("expose-event", self.expose) self.disco = cfg[0] self.ini = int(float(cfg[1])) self.fin = int(float(cfg[2])) self.swap = int(float(cfg[3])) self.metodo = cfg[4] self.total = int(self.fin - self.ini) self.root1 = gen.hum(gen.part_root1(self.total)) self.root2 = gen.hum(gen.part_root2(self.total)) self.usr = gen.hum(gen.part_root1(self.total))