def setUp(self):
        self.app = wx.App()
        self.frame = wx.Frame(None)

        gbl.COLOR_SCHEME = gbl.SKINS[gbl.pick_scheme()]

        gbl.dataset = LedgerDataSet(None)
Esempio n. 2
0
    def setUp(self):
        self.app = wx.App()
        self.frame = wx.Frame(None)

        gbl.COLOR_SCHEME = gbl.SKINS[gbl.pick_scheme()]
        gbl.DB_PATH = 'c:/bench/allocat/tests/allocat.db'

        gbl.dataset = LedgerDataSet(None)

        self.presenter = ImportPresenter(self.frame)
        self.view = self.presenter.view
Esempio n. 3
0
    def setUp(self):
        self.app = wx.App()
        self.frame = wx.Frame(None)

        gbl.COLOR_SCHEME = gbl.SKINS[gbl.pick_scheme()]
        gbl.DB_PATH = 'c:/bench/allocat/tests/allocat.db'

        gbl.dataset = AllocatDataSet(None)

        self.presenter = EmployeePresenter(self.frame)
        self.presenter.init_view()
    def setUp(self):
        self.app = wx.App()
        self.frame = wx.Frame(None)

        gbl.COLOR_SCHEME = gbl.SKINS[gbl.pick_scheme()]
        gbl.DB_PATH = 'c:/bench/allocat/tests/allocat.db'

        gbl.dataset = AllocatDataSet(None)

        with patch('presenters.effort_presenter.EffortPresenter.get_init_dates'
                   ) as mock_dates:
            mock_dates.return_value = ('1912', '2011')
            self.presenter = EffortPresenter(self.frame)
Esempio n. 5
0
if __name__ == '__main__':
    import wx
    import globals as gbl
    from models.ledger_dataset import LedgerDataSet
    from views.ledger_window import LedgerWindow

    gbl.COLOR_SCHEME = gbl.SKINS[gbl.pick_scheme()]

    app = wx.App()

    gbl.dataset = LedgerDataSet(gbl.DB_PATH)

    main_window = LedgerWindow()
    main_window.Show()

    app.MainLoop()

    def setUp(self):
        self.app = wx.App()
        self.frame = wx.Frame(None)

        gbl.COLOR_SCHEME = gbl.SKINS[gbl.pick_scheme()]