def importIngredientPrices(self, ingredientPricesFile): print "Importing Ingredient Prices" # get an interface to the file II = ImportInterface(self.dbfilename) II.importIngredientPrices(ingredientPricesFile)
def importResults(self, resultsDataFile, season, week): print "Importing round results for Week %d of Season %d" % (week, season) # get an interface to the file II = ImportInterface(self.dbfilename) # import results as csv file II.importResults(resultsDataFile, season, week)
def createDatabaseFromName(self, current_window, dbFileName, directory ): dbFileName = os.path.join(directory.get(), dbFileName.get()) tkMessageBox.showinfo("Attention","Created new database called %s" % dbFileName) # get an interface to the file II = ImportInterface(dbFileName) II.createDatabase() self.closeTopLevelWindow(current_window)
def importGameStats( self, gameStatsFile, # csv containing game statistics opposition, # opposition team name season, # season number week # week number ): print "Importing new game data for Week %d of Season %d against %s" % ( week, season, opposition) # get an interface to the file II = ImportInterface(self.dbfilename) # import game stats as csv file II.importGameStats(gameStatsFile, opposition, season, week)
def importGameStats(self, gameStatsFile, # csv containing game statistics opposition, # opposition team name season, # season number week # week number ): print "Importing new game data for Week %d of Season %d against %s" % (week, season, opposition) # get an interface to the file II = ImportInterface(self.dbfilename) # import game stats as csv file II.importGameStats(gameStatsFile, opposition, season, week)
def createDatabase(self, ): # get an interface to the file II = ImportInterface(self.dbfilename) II.createDatabase()
def importTest(self): # get an interface to the file II = ImportInterface(self.dbfilename) II.addBars()