from tkinter import *
from enum import Enum



class InventoryTable:
    
     def __init__(self, master):
        self.master = master
        self.frame = Frame(self.master)
        self.output_1_table = pt = Table(self.output_1_frame, dataframe=df,
                                showtoolbar=True, showstatusbar=True)
        pt.show()  
        
        
        
        self.frame.rowconfigure(0, weight=1)
        self.frame.columnconfigure(0, weight=1)
        
        self.demandLbl = Label(self.frame ,text= "Demand")
        self.demandLbl.grid(row=0, column=0)
        self.demandLbl = Label(self.frame ,text= "Frequence")
        self.demandLbl.grid(row=0, column=1)
        self.append_input_row()
        
        
        
       

        self.frame.pack(pady=2)
  
        self.add_rowBtn = Button(self.master , text = "Add row" ,command=lambda :self.append_input_row() )
        self.add_rowBtn.pack(side = BOTTOM , fill=X)
        self.simulateBtn = Button(self.master , text = "Simulate" ,command=lambda :self.show_output() )
        self.simulateBtn.pack(side = BOTTOM , fill=X)
        
     def append_input_row(self):
        self.row_count +=1
        self.input[InventoryInputTableKeys.Demand] =dict()
        self.input[InventoryInputTableKeys.Frequence] = dict()
        self.input[InventoryInputTableKeys.Demand][self.row_count] = Entry(self.frame)
        self.input[InventoryInputTableKeys.Demand][self.row_count].insert(0,self.row_count-1)
        self.input[InventoryInputTableKeys.Demand][self.row_count].grid(row=self.row_count,column=0)
        self.input[InventoryInputTableKeys.Frequence][self.row_count] = Entry(self.frame)
        self.input[InventoryInputTableKeys.Frequence][self.row_count].grid(row=self.row_count,column=1)
        
     def show_output(self):
         self.destroy_view()
         InventoryOutputTabs(self.master)
         
         
     def destroy_view(self):
         self.frame.destroy()
         self.simulateBtn.destroy()
         self.add_rowBtn.destroy()
            
     
62c76e5d132d872a7dbe0d0cc9a7baf9fc5df3c9
<mask token>


class InventoryTable:

    def __init__(self, master):
        self.master = master
        self.frame = Frame(self.master)
        self.output_1_table = pt = Table(self.output_1_frame, dataframe=df,
            showtoolbar=True, showstatusbar=True)
        pt.show()
        self.frame.rowconfigure(0, weight=1)
        self.frame.columnconfigure(0, weight=1)
        self.demandLbl = Label(self.frame, text='Demand')
        self.demandLbl.grid(row=0, column=0)
        self.demandLbl = Label(self.frame, text='Frequence')
        self.demandLbl.grid(row=0, column=1)
        self.append_input_row()
        self.frame.pack(pady=2)
        self.add_rowBtn = Button(self.master, text='Add row', command=lambda :
            self.append_input_row())
        self.add_rowBtn.pack(side=BOTTOM, fill=X)
        self.simulateBtn = Button(self.master, text='Simulate', command=lambda
            : self.show_output())
        self.simulateBtn.pack(side=BOTTOM, fill=X)

    def append_input_row(self):
        self.row_count += 1
        self.input[InventoryInputTableKeys.Demand] = dict()
        self.input[InventoryInputTableKeys.Frequence] = dict()
        self.input[InventoryInputTableKeys.Demand][self.row_count] = Entry(self
            .frame)
        self.input[InventoryInputTableKeys.Demand][self.row_count].insert(0,
            self.row_count - 1)
        self.input[InventoryInputTableKeys.Demand][self.row_count].grid(row
            =self.row_count, column=0)
        self.input[InventoryInputTableKeys.Frequence][self.row_count] = Entry(
            self.frame)
        self.input[InventoryInputTableKeys.Frequence][self.row_count].grid(row
            =self.row_count, column=1)
    <mask token>
    <mask token>

<mask token>


class InventoryTable:

    def __init__(self, master):
        self.master = master
        self.frame = Frame(self.master)
        self.output_1_table = pt = Table(self.output_1_frame, dataframe=df,
            showtoolbar=True, showstatusbar=True)
        pt.show()
        self.frame.rowconfigure(0, weight=1)
        self.frame.columnconfigure(0, weight=1)
        self.demandLbl = Label(self.frame, text='Demand')
        self.demandLbl.grid(row=0, column=0)
        self.demandLbl = Label(self.frame, text='Frequence')
        self.demandLbl.grid(row=0, column=1)
        self.append_input_row()
        self.frame.pack(pady=2)
        self.add_rowBtn = Button(self.master, text='Add row', command=lambda :
            self.append_input_row())
        self.add_rowBtn.pack(side=BOTTOM, fill=X)
        self.simulateBtn = Button(self.master, text='Simulate', command=lambda
            : self.show_output())
        self.simulateBtn.pack(side=BOTTOM, fill=X)

    def append_input_row(self):
        self.row_count += 1
        self.input[InventoryInputTableKeys.Demand] = dict()
        self.input[InventoryInputTableKeys.Frequence] = dict()
        self.input[InventoryInputTableKeys.Demand][self.row_count] = Entry(self
            .frame)
        self.input[InventoryInputTableKeys.Demand][self.row_count].insert(0,
            self.row_count - 1)
        self.input[InventoryInputTableKeys.Demand][self.row_count].grid(row
            =self.row_count, column=0)
        self.input[InventoryInputTableKeys.Frequence][self.row_count] = Entry(
            self.frame)
        self.input[InventoryInputTableKeys.Frequence][self.row_count].grid(row
            =self.row_count, column=1)

    def show_output(self):
        self.destroy_view()
        InventoryOutputTabs(self.master)
    <mask token>

<mask token>


class InventoryTable:

    def __init__(self, master):
        self.master = master
        self.frame = Frame(self.master)
        self.output_1_table = pt = Table(self.output_1_frame, dataframe=df,
            showtoolbar=True, showstatusbar=True)
        pt.show()
        self.frame.rowconfigure(0, weight=1)
        self.frame.columnconfigure(0, weight=1)
        self.demandLbl = Label(self.frame, text='Demand')
        self.demandLbl.grid(row=0, column=0)
        self.demandLbl = Label(self.frame, text='Frequence')
        self.demandLbl.grid(row=0, column=1)
        self.append_input_row()
        self.frame.pack(pady=2)
        self.add_rowBtn = Button(self.master, text='Add row', command=lambda :
            self.append_input_row())
        self.add_rowBtn.pack(side=BOTTOM, fill=X)
        self.simulateBtn = Button(self.master, text='Simulate', command=lambda
            : self.show_output())
        self.simulateBtn.pack(side=BOTTOM, fill=X)

    def append_input_row(self):
        self.row_count += 1
        self.input[InventoryInputTableKeys.Demand] = dict()
        self.input[InventoryInputTableKeys.Frequence] = dict()
        self.input[InventoryInputTableKeys.Demand][self.row_count] = Entry(self
            .frame)
        self.input[InventoryInputTableKeys.Demand][self.row_count].insert(0,
            self.row_count - 1)
        self.input[InventoryInputTableKeys.Demand][self.row_count].grid(row
            =self.row_count, column=0)
        self.input[InventoryInputTableKeys.Frequence][self.row_count] = Entry(
            self.frame)
        self.input[InventoryInputTableKeys.Frequence][self.row_count].grid(row
            =self.row_count, column=1)

    def show_output(self):
        self.destroy_view()
        InventoryOutputTabs(self.master)

    def destroy_view(self):
        self.frame.destroy()
        self.simulateBtn.destroy()
        self.add_rowBtn.destroy()

from tkinter import *
from enum import Enum


class InventoryTable:

    def __init__(self, master):
        self.master = master
        self.frame = Frame(self.master)
        self.output_1_table = pt = Table(self.output_1_frame, dataframe=df,
            showtoolbar=True, showstatusbar=True)
        pt.show()
        self.frame.rowconfigure(0, weight=1)
        self.frame.columnconfigure(0, weight=1)
        self.demandLbl = Label(self.frame, text='Demand')
        self.demandLbl.grid(row=0, column=0)
        self.demandLbl = Label(self.frame, text='Frequence')
        self.demandLbl.grid(row=0, column=1)
        self.append_input_row()
        self.frame.pack(pady=2)
        self.add_rowBtn = Button(self.master, text='Add row', command=lambda :
            self.append_input_row())
        self.add_rowBtn.pack(side=BOTTOM, fill=X)
        self.simulateBtn = Button(self.master, text='Simulate', command=lambda
            : self.show_output())
        self.simulateBtn.pack(side=BOTTOM, fill=X)

    def append_input_row(self):
        self.row_count += 1
        self.input[InventoryInputTableKeys.Demand] = dict()
        self.input[InventoryInputTableKeys.Frequence] = dict()
        self.input[InventoryInputTableKeys.Demand][self.row_count] = Entry(self
            .frame)
        self.input[InventoryInputTableKeys.Demand][self.row_count].insert(0,
            self.row_count - 1)
        self.input[InventoryInputTableKeys.Demand][self.row_count].grid(row
            =self.row_count, column=0)
        self.input[InventoryInputTableKeys.Frequence][self.row_count] = Entry(
            self.frame)
        self.input[InventoryInputTableKeys.Frequence][self.row_count].grid(row
            =self.row_count, column=1)

    def show_output(self):
        self.destroy_view()
        InventoryOutputTabs(self.master)

    def destroy_view(self):
        self.frame.destroy()
        self.simulateBtn.destroy()
        self.add_rowBtn.destroy()

from tkinter import *
from enum import Enum



class InventoryTable:
    
     def __init__(self, master):
        self.master = master
        self.frame = Frame(self.master)
        self.output_1_table = pt = Table(self.output_1_frame, dataframe=df,
                                showtoolbar=True, showstatusbar=True)
        pt.show()  
        
        
        
        self.frame.rowconfigure(0, weight=1)
        self.frame.columnconfigure(0, weight=1)
        
        self.demandLbl = Label(self.frame ,text= "Demand")
        self.demandLbl.grid(row=0, column=0)
        self.demandLbl = Label(self.frame ,text= "Frequence")
        self.demandLbl.grid(row=0, column=1)
        self.append_input_row()
        
        
        
       

        self.frame.pack(pady=2)
  
        self.add_rowBtn = Button(self.master , text = "Add row" ,command=lambda :self.append_input_row() )
        self.add_rowBtn.pack(side = BOTTOM , fill=X)
        self.simulateBtn = Button(self.master , text = "Simulate" ,command=lambda :self.show_output() )
        self.simulateBtn.pack(side = BOTTOM , fill=X)
        
     def append_input_row(self):
        self.row_count +=1
        self.input[InventoryInputTableKeys.Demand] =dict()
        self.input[InventoryInputTableKeys.Frequence] = dict()
        self.input[InventoryInputTableKeys.Demand][self.row_count] = Entry(self.frame)
        self.input[InventoryInputTableKeys.Demand][self.row_count].insert(0,self.row_count-1)
        self.input[InventoryInputTableKeys.Demand][self.row_count].grid(row=self.row_count,column=0)
        self.input[InventoryInputTableKeys.Frequence][self.row_count] = Entry(self.frame)
        self.input[InventoryInputTableKeys.Frequence][self.row_count].grid(row=self.row_count,column=1)
        
     def show_output(self):
         self.destroy_view()
         InventoryOutputTabs(self.master)
         
         
     def destroy_view(self):
         self.frame.destroy()
         self.simulateBtn.destroy()
         self.add_rowBtn.destroy()
            
     