class VacalcApplication(VacationCalculator):
    def create(self):
        default_db = os.path.join(tempfile.gettempdir(), 'vacalcdb.csv')
        self._db_file = os.environ.get('VACALC_DB', default_db)
        self._store = EmployeeStore(self._db_file)
        self._frame = VacalcFrame(EmployeeController(self._store), CurrentDate)
        self._frame.show()
Пример #2
0
class VacalcApplication(VacationCalculator):

    def create(self):
        default_db = os.path.join(tempfile.gettempdir(), 'vacalcdb.csv')
        self._db_file= os.environ.get('VACALC_DB', default_db)
        self._store = EmployeeStore(self._db_file)
        self._frame = VacalcFrame(EmployeeController(self._store))
        self._frame.show()
Пример #3
0
 def create(self):
     default_db = os.path.join(tempfile.gettempdir(), 'vacalcdb.csv')
     self._db_file = os.environ.get('VACALC_DB', default_db)
     self._size = os.stat(self._db_file).st_size if os.path.exists(
         self._db_file) else 0
     self._store = EmployeeStore(self._db_file)
     self._frame = VacalcFrame(EmployeeController(self._store))
     self._frame.show()
 def create(self):
     default_db = os.path.join(tempfile.gettempdir(), 'vacalcdb.csv')
     self._db_file= os.environ.get('VACALC_DB', default_db)
     self._store = EmployeeStore(self._db_file)
     self._frame = VacalcFrame(EmployeeController(self._store), CurrentDate)
     self._frame.show()