def _edit_inventory(self, event):
     """
     Open inventory for editing.
     """
     try:
         w = NewInventory(event.get_name()[1:], edit_mode=True)
     except NoInventory:
         return
     w.show_all()
Ejemplo n.º 2
0
 def _edit_inventory(self, event):
     """
     Open inventory for editing.
     """
     try:
         w = NewInventory(event.get_name()[1:], edit_mode=True)
     except NoInventory:
         return
     w.show_all()
Ejemplo n.º 3
0
    def _edit_inv(self, widget, inv):
        """
        Open Inventory for editing.
        """
        # checking for inventory existence in schemas file.
        schemas = ConfigParser()
        schemas.read(Path.sched_schemas)

        if not schemas.has_section(inv):
            dlg = NoScheduleDlg()
            dlg.run()
            dlg.destroy()
            return

        w = NewInventory(inv, edit_mode=True)
        w.show_all()
    def _edit_inv(self, widget, inv):
        """
        Open Inventory for editing.
        """
        # checking for inventory existence in schemas file.
        schemas = ConfigParser()
        schemas.read(Path.sched_schemas)

        if not schemas.has_section(inv):
            dlg = NoScheduleDlg()
            dlg.run()
            dlg.destroy()
            return

        w = NewInventory(inv, edit_mode=True)
        w.show_all()
 def _create_new(self, event):
     """
     Open dialog for creating New Inventory.
     """
     w = NewInventory()
     w.show_all()
Ejemplo n.º 6
0
 def _create_new(self, event):
     """
     Open dialog for creating New Inventory.
     """
     w = NewInventory()
     w.show_all()