コード例 #1
0
ファイル: main_window.py プロジェクト: Mouchnino/moneyguru
 def __init__(self, document):
     Repeater.__init__(self, document)
     GUIObject.__init__(self)
     self.document = document
     self.app = document.app
     self._selected_transactions = []
     self._explicitly_selected_transactions = []
     self._selected_schedules = []
     self._selected_budgets = []
     self._account2visibleentries = {}
     self.panes = []
     self.hidden_areas = set()
     
     self.search_field = SearchField(self)
     self.daterange_selector = DateRangeSelector(self)
     self.account_lookup = AccountLookup(self)
     self.completion_lookup = CompletionLookup(self)
     
     self.account_panel = AccountPanel(self)
     self.transaction_panel = TransactionPanel(self)
     self.mass_edit_panel = MassEditionPanel(self)
     self.budget_panel = BudgetPanel(self)
     self.schedule_panel = SchedulePanel(self)
     self.custom_daterange_panel = CustomDateRangePanel(self)
     self.account_reassign_panel = AccountReassignPanel(self)
     self.export_panel = ExportPanel(self)
             
     msgs = MESSAGES_DOCUMENT_CHANGED | {'filter_applied', 'date_range_changed'}
     self.bind_messages(msgs, self._invalidate_visible_entries)
コード例 #2
0
ファイル: document.py プロジェクト: Mouchnino/moneyguru
 def __init__(self, app):
     Repeater.__init__(self, app)
     GUIObject.__init__(self)
     self.app = app
     self._properties = {
         'first_weekday': 0,
         'ahead_months': 3,
         'year_start_month': 1,
         'default_currency': self.app._default_currency,
     }
     self.accounts = AccountList(self.default_currency)
     self.excluded_accounts = set()
     self.groups = GroupList()
     self.transactions = TransactionList()
     # I did not manage to create a repeatable test for it, but self.schedules has to be ordered
     # because the order in which the spawns are created must stay the same
     self.schedules = []
     self.budgets = BudgetList()
     self.oven = Oven(self.accounts, self.transactions, self.schedules, self.budgets)
     self._undoer = Undoer(self.accounts, self.groups, self.transactions, self.schedules, self.budgets)
     self._date_range = YearRange(datetime.date.today())
     self._filter_string = ''
     self._filter_type = None
     self._document_id = None
     self._dirty_flag = False
     self._restore_preferences()
コード例 #3
0
ファイル: main_window.py プロジェクト: pankajpundir/moneyguru
    def __init__(self, document):
        Repeater.__init__(self, document)
        GUIObject.__init__(self)
        self.document = document
        self.app = document.app
        self._selected_transactions = []
        self._explicitly_selected_transactions = []
        self._selected_schedules = []
        self._selected_budgets = []
        self._account2visibleentries = {}
        self.panes = []
        self.hidden_areas = set()

        self.search_field = SearchField(self)
        self.daterange_selector = DateRangeSelector(self)
        self.account_lookup = AccountLookup(self)
        self.completion_lookup = CompletionLookup(self)

        self.csv_options = CSVOptions(self)
        self.import_window = ImportWindow(self)

        msgs = MESSAGES_DOCUMENT_CHANGED | {
            'filter_applied', 'date_range_changed'
        }
        self.bind_messages(msgs, self._invalidate_visible_entries)
コード例 #4
0
ファイル: base.py プロジェクト: Mouchnino/moneyguru
 def __init__(self, parent_view):
     Listener.__init__(self, parent_view)
     GUIObject.__init__(self)
     HideableObject.__init__(self)
     self.parent_view = parent_view
     self.mainwindow = parent_view.mainwindow
     self.document = self.mainwindow.document
     self.app = self.document.app
コード例 #5
0
ファイル: deletion_options.py プロジェクト: Beyond82/dupeguru
 def __init__(self):
     GUIObject.__init__(self)
     #: Whether symlinks or hardlinks are used when doing :attr:`link_deleted`.
     #: *bool*. *get/set*
     self.use_hardlinks = False
     #: Delete dupes directly and don't send to trash.
     #: *bool*. *get/set*
     self.direct = False
コード例 #6
0
 def __init__(self):
     GUIObject.__init__(self)
     #: Whether symlinks or hardlinks are used when doing :attr:`link_deleted`.
     #: *bool*. *get/set*
     self.use_hardlinks = False
     #: Delete dupes directly and don't send to trash.
     #: *bool*. *get/set*
     self.direct = False
コード例 #7
0
 def __init__(self, app):
     GUIObject.__init__(self)
     self.app = app
     self.categories = [cat(app.results) for cat in app._prioritization_categories()]
     self.category_list = CriterionCategoryList(self)
     self.criteria = []
     self.criteria_list = GUISelectableList()
     self.prioritizations = []
     self.prioritization_list = PrioritizationList(self)
コード例 #8
0
ファイル: base.py プロジェクト: Mouchnino/moneyguru
 def __init__(self, mainwindow):
     Repeater.__init__(self, mainwindow)
     GUIObject.__init__(self)
     HideableObject.__init__(self)
     self._children = []
     self.mainwindow = mainwindow
     self.document = mainwindow.document
     self.app = mainwindow.document.app
     self._status_line = ""
コード例 #9
0
ファイル: base.py プロジェクト: tautonic/moneyguru
 def __init__(self, document, listento=None):
     if listento is None:
         listento = document
     Listener.__init__(self, listento)
     GUIObject.__init__(self)
     #: Parent :class:`document <.Document>`.
     self.document = document
     #: Parent :class:`app <.Application>`.
     self.app = document.app
コード例 #10
0
ファイル: base.py プロジェクト: patrickatamaniuk/moneyguru
 def __init__(self, document, listento=None):
     if listento is None:
         listento = document
     Listener.__init__(self, listento)
     GUIObject.__init__(self)
     #: Parent :class:`document <.Document>`.
     self.document = document
     #: Parent :class:`app <.Application>`.
     self.app = document.app
コード例 #11
0
ファイル: prioritize_dialog.py プロジェクト: legwak/dupeguru
 def __init__(self, app):
     GUIObject.__init__(self)
     self.app = app
     self.categories = [cat(app.results) for cat in app._prioritization_categories()]
     self.category_list = CriterionCategoryList(self)
     self.criteria = []
     self.criteria_list = GUISelectableList()
     self.prioritizations = []
     self.prioritization_list = PrioritizationList(self)
コード例 #12
0
ファイル: base.py プロジェクト: tautonic/moneyguru
 def __init__(self, mainwindow):
     Repeater.__init__(self, mainwindow)
     GUIObject.__init__(self)
     HideableObject.__init__(self)
     self._children = []
     #: :class:`.MainWindow`
     self.mainwindow = mainwindow
     #: :class:`.Document`
     self.document = mainwindow.document
     #: :class:`.Application`
     self.app = mainwindow.document.app
     self._status_line = ""
コード例 #13
0
ファイル: base.py プロジェクト: patrickatamaniuk/moneyguru
 def __init__(self, mainwindow):
     Repeater.__init__(self, mainwindow)
     GUIObject.__init__(self)
     HideableObject.__init__(self)
     self._children = []
     #: :class:`.MainWindow`
     self.mainwindow = mainwindow
     #: :class:`.Document`
     self.document = mainwindow.document
     #: :class:`.Application`
     self.app = mainwindow.document.app
     self._status_line = ""
コード例 #14
0
ファイル: main_window.py プロジェクト: daleathan/moneyguru
    def __init__(self, document):
        Repeater.__init__(self, document)
        GUIObject.__init__(self)
        self.document = document
        self.app = document.app
        self._selected_transactions = []
        self._explicitly_selected_transactions = []
        self._selected_schedules = []
        self._selected_budgets = []
        self._account2visibleentries = {}
        self.panes = []
        self.hidden_areas = set()

        self.search_field = SearchField(self)
        self.daterange_selector = DateRangeSelector(self)
        self.account_lookup = AccountLookup(self)
        self.completion_lookup = CompletionLookup(self)

        self.csv_options = CSVOptions(self)
        self.import_window = ImportWindow(self)

        msgs = MESSAGES_DOCUMENT_CHANGED | {'filter_applied', 'date_range_changed'}
        self.bind_messages(msgs, self._invalidate_visible_entries)
コード例 #15
0
 def __init__(self, app):
     GUIObject.__init__(self)
     self.app = app
     self.text = "Working on: Nothing"
コード例 #16
0
ファイル: details_panel.py プロジェクト: 1kakarot/dupeguru
 def __init__(self, app):
     GUIObject.__init__(self, multibind=True)
     DupeGuruGUIObject.__init__(self, app)
     self._table = []
コード例 #17
0
ファイル: filter_bar.py プロジェクト: Mouchnino/moneyguru
 def __init__(self, parent_view):
     GUIObject.__init__(self)
     self.mainwindow = parent_view.mainwindow
     self.document = parent_view.document
コード例 #18
0
ファイル: base.py プロジェクト: patrickatamaniuk/moneyguru
 def __init__(self, document):
     GUIObject.__init__(self)
     #: Parent :class:`document <.Document>`.
     self.document = document
     #: Parent :class:`app <.Application>`.
     self.app = document.app
コード例 #19
0
 def __init__(self, app):
     GUIObject.__init__(self, multibind=True)
     DupeGuruGUIObject.__init__(self, app)
     self._table = []
コード例 #20
0
ファイル: base.py プロジェクト: tautonic/moneyguru
 def __init__(self, document):
     GUIObject.__init__(self)
     #: Parent :class:`document <.Document>`.
     self.document = document
     #: Parent :class:`app <.Application>`.
     self.app = document.app
コード例 #21
0
ファイル: opened_file_label.py プロジェクト: hsoft/pdfmasher
 def __init__(self, app):
     GUIObject.__init__(self)
     self.app = app
     self.text = "Working on: Nothing"
コード例 #22
0
ファイル: base.py プロジェクト: Mouchnino/moneyguru
 def __init__(self, document):
     Listener.__init__(self, document)
     GUIObject.__init__(self)
     self.document = document
     self.app = document.app
コード例 #23
0
ファイル: filter_bar.py プロジェクト: tautonic/moneyguru
 def __init__(self, parent_view):
     GUIObject.__init__(self)
     self.mainwindow = parent_view.mainwindow
     self.document = parent_view.document
コード例 #24
0
ファイル: base.py プロジェクト: treborrx/pdfmasher
 def __init__(self, app):
     Listener.__init__(self, app)
     GUIObjectBase.__init__(self)
     self.app = app
     self.connect()
コード例 #25
0
 def __init__(self, app):
     GUIObject.__init__(self)
     DupeGuruGUIObject.__init__(self, app)
     self._table = []
コード例 #26
0
ファイル: base.py プロジェクト: Mouchnino/moneyguru
 def __init__(self, document):
     GUIObject.__init__(self)
     self.document = document
     self.app = document.app