HomePhabricator

[electrum] move format_amount* functions from main_window to amount.py

Description

[electrum] move format_amount* functions from main_window to amount.py

Summary:
This does not need to be a method associated with a GUI window. Moving it to another module will reduce the dependencies on main_window by subwidgets of the main window.

Another small effort in making main_window less of a God object

Depends on D18316

Test Plan:
python test_runner.py unit

Run Electrum ABC, check for no errors and look at some amounts (XEC and fiat), double-click on a transaction and on an address to open the modified dialogs

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18317

Details

Provenance
PiRKAuthored on Jul 3 2025, 10:42
PiRKPushed on Jul 3 2025, 21:05
Reviewer
Restricted Project
Differential Revision
D18317: [electrum] move format_amount* functions from main_window to amount.py
Parents
rABC372b032bfb11: [electrum] move-only: move amount formatting functions from util to amount.py
Branches
Unknown
Tags
Unknown