Skip to content

Commit

Permalink
Integer indices in JalIcon was replaced with auto()
Browse files Browse the repository at this point in the history
  • Loading branch information
titov-vv committed Feb 3, 2024
1 parent 70d4898 commit 48315a8
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions jal/widgets/icons.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from enum import auto
from collections import UserDict
from PySide6.QtGui import QIcon
from jal.constants import Setup
Expand All @@ -7,28 +8,28 @@

ICON_PREFIX = "ui_"
class JalIcon(UserDict):
NONE = 0
BOND_AMORTIZATION = 1
BOND_INTEREST = 2
BUY = 3
DELISTING = 4
DEPOSIT_OPEN = 5
DEPOSIT_CLOSE = 6
DIVIDEND = 7
FEE = 8
INTEREST = 9
MERGER = 10
MINUS = 11
PLUS = 12
SELL = 13
SPINOFF = 14
SPLIT = 15
STOCK_DIVIDEND = 16
STOCK_VESTING = 17
SYMBOL_CHANGE = 18
TAX = 19
TRANSFER_IN = 20
TRANSFER_OUT = 21
NONE = auto()
BOND_AMORTIZATION = auto()
BOND_INTEREST = auto()
BUY = auto()
DELISTING = auto()
DEPOSIT_OPEN = auto()
DEPOSIT_CLOSE = auto()
DIVIDEND = auto()
FEE = auto()
INTEREST = auto()
MERGER = auto()
MINUS = auto()
PLUS = auto()
SELL = auto()
SPINOFF = auto()
SPLIT = auto()
STOCK_DIVIDEND = auto()
STOCK_VESTING = auto()
SYMBOL_CHANGE = auto()
TAX = auto()
TRANSFER_IN = auto()
TRANSFER_OUT = auto()

_icon_files = {
BOND_AMORTIZATION: "amortization.ico",
Expand Down

0 comments on commit 48315a8

Please sign in to comment.