コード例 #1
0
ファイル: t_statistics.py プロジェクト: Paphra/Itory-Py
    def _tabchanged(self, event=None):

        sel_tb = self.mf_ntb.tab('current')
        self.sb.lb_left['text'] = "Current Tab: " + sel_tb['text']
        _name = sel_tb['text']

        if _name == 'Income':
            focus(self.t_income.income_main)
コード例 #2
0
    def _tabchanged(self, event=None):
        sel_tb = self.mf_ntb.tab('current')
        self.sb.lb_left['text'] = "Current Tab: " + sel_tb['text']
        _name = sel_tb['text']

        if _name == 'Sales Returns':
            focus(self.t_sales_ret.sales_main)
        else:
            focus(self.t_pur_ret.purchases_main)
コード例 #3
0
ファイル: t_assets.py プロジェクト: Paphra/Itory-Py
    def _tabchanged(self, event=None):
        sel_tb = self.mf_ntb.tab('current')
        self.sb.lb_left['text'] = "Current Tab: " + sel_tb['text']

        _name = sel_tb['text']
        if _name == 'Debtors':
            focus(self.t_debtors.debtors_main)

        elif _name == 'Fixed Assets':
            focus(self.t_fixed_assets.fixed_main)
コード例 #4
0
ファイル: t_liabilities.py プロジェクト: Paphra/Itory-Py
    def _tabchanged(self, event=None):
        sel_tb = self.mf_ntb.tab('current')
        self.sb.lb_left['text'] = "Current Tab: " + sel_tb['text']
        _name = sel_tb['text']

        if _name == 'Creditors':
            focus(self.t_creditors.creditors_main)

        elif _name == 'Accruals':
            focus(self.t_accruals.accruals_main)
コード例 #5
0
ファイル: tab_pane.py プロジェクト: Paphra/Itory-Py
    def _tabchanged(self, event=None):
        sel_tb = self.ntb.tab('current')
        self.sb.lb_left['text'] = "Current Tab: " + sel_tb['text']

        _name = sel_tb['text']
        if _name == 'Home':
            self.t_home.i_c.set_items(self.items_inst.get_all())
            self.t_home.i_c.clear_all_items()

        elif _name == 'Items':
            self.t_items.i_main.all_items_works()

        elif _name == 'Sales':
            focus(self.t_sales.sales_main)

        elif _name == 'Purchases':
            focus(self.t_purchases.p_main)

        elif _name == 'Accounts':
            self.t_accounts.a_main.acc_ntb.select(0)
            self.t_accounts.a_main.t_assets.mf_ntb.select(0)
            focus(self.t_accounts.a_main.t_assets.t_debtors.debtors_main)

        elif _name == 'Graphs':
            self.t_graphs.g_main.selection()
            self.t_graphs.g_main.graph_it()
コード例 #6
0
    def _tabchanged(self, event=None):
        sel_tb = self.a_main.acc_ntb.tab('current')
        self.sb.lb_left['text'] = "Current Tab: " + sel_tb['text']
        _name = sel_tb['text']

        if _name == 'Assets':
            self.a_main.t_assets.mf_ntb.select(0)
            focus(self.a_main.t_assets.t_debtors.debtors_main)

        elif _name == 'Expenses':
            focus(self.a_main.t_expenses.expenses_main)

        elif _name == 'Drawings':
            focus(self.a_main.t_drawings.drawings_main)

        elif _name == 'Statistics':
            self.a_main.t_statistics.mf_ntb.select(0)
            focus(self.a_main.t_statistics.t_income.income_main)

        elif _name == 'Returns':
            self.a_main.t_returns.mf_ntb.select(0)
            focus(self.a_main.t_returns.t_sales_ret.sales_main)

        elif _name == 'Liabilities':
            self.a_main.t_liabilities.mf_ntb.select(0)
            focus(self.a_main.t_liabilities.t_accruals.accruals_main)