def wrapper(): if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return self.output_tb.set_output( function_12.sort_by_nonexpired_date1(asc))
def wrapper(): if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return self.output_tb.set_output(function_9.agency_min_procurement()) self.output_tb.set_output(function_9.sorted_min_procurement(asc))
def wrapper(): if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return self.set_output(sort_date_time1()) self.set_output(sort_by_expired_date1(True))
def function_2_clicked(self, e): function_2.createFolder() function_2.writetxt() function_2.txtdetails() if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return
def function_5_clicked(self, e): """ Check if sheets are loaded and perform function 5 """ if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return self.output_tb.set_output(function_5())
def wrapper(): if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return function_3.procurement_dictionary1() function_3.total_procurement_dictionary1() self.output_tb.set_output( function_3.sorted_total_procurement_dictionary1(asc))
def function_2_clicked(self, e): """ Check if sheets are loaded and perform function 2 """ if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return function_2.save()
def function_10_clicked(self, e): """ Check if sheets are loaded and show the workheads pop up window """ if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return WorkheadsPage(self)
def wrapper(): if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return self.set_output(procurement_dictionary1()) self.set_output(total_procurement_dictionary1()) self.set_output(agency_min_procurement()) self.set_output(sorted_min_procurement(asc))
def lda_function_clicked(self, e): """ Check if sheets are loaded and show procurements grouped by topic. The topics are created using natural language processing, LDA model """ if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return ProcurementTopicsDialog(self)
def procurements_browse_clicked(e): path = prompt_sheet_location() if (path == ''): return data_holder.load_procurement_list(path) if (data_holder.are_sheets_loaded()): stats = basic_statistics.generate_stats() basic_stats_text.config(state=NORMAL) basic_stats_text.insert(END, stats) basic_stats_text.config(state=DISABLED)
def contractors_browse_clicked(e): path = prompt_sheet_location() if (path == ''): # don't do anything when path is empty return data_holder.load_contractor_list(path) if (data_holder.are_sheets_loaded()): # stats = basic_statistics.generate_stats() basic_stats_text.config(state=NORMAL) basic_stats_text.insert(END, stats) basic_stats_text.config(state=DISABLED)
def wrapper(): if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return self.output_tb.set_output(function_6(category))
def wrapper(): if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return self.set_output(contractor_workhead_grade())
def function_6_clicked(self, e): if not data_holder.are_sheets_loaded(): MessageDialog(self, "Load contractors and procurements first!") return self.set_output(function_5())