Skip to content

Commit

Permalink
FEAT: Change index inventory demo to pull from the sample db.
Browse files Browse the repository at this point in the history
  • Loading branch information
genedan committed Jan 19, 2025
1 parent 5e9ad44 commit 111460c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions faslr/demos/index/index_inventory_demo.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
"""
Demo of the IndexInventory widget.
"""

import sys
from faslr.demos.sample_db import set_sample_db

from faslr.index import (
IndexInventory
)

from faslr.utilities import (
ppa_loss_trend,
tort_index
)

from PyQt6.QtWidgets import (
QApplication
)

set_sample_db()

app = QApplication(sys.argv)

widget = IndexInventory(indexes=[
ppa_loss_trend,
tort_index
])
widget = IndexInventory()

widget.show()

Expand Down

0 comments on commit 111460c

Please sign in to comment.