Skip to content

Commit

Permalink
improved import of widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
Nokse22 committed Apr 16, 2024
1 parent 06f822a commit 2807e84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
import random
import os

from ..widgets.generic_track_widget import GenericTrackWidget
from ..widgets.card_widget import CardWidget
from ..widgets import GenericTrackWidget
from ..widgets import CardWidget

class Page(Adw.NavigationPage):
__gtype_name__ = 'Page'
Expand All @@ -62,6 +62,7 @@ def __init__(self, _window, _item=None, _name=None):
self.content = self.builder.get_object("_content")
self.content_stack = self.builder.get_object("_content_stack")
self.object = self.builder.get_object("_main")
self.scrolled_window = self.builder.get_object("_scrolled_window")

self.set_child(self.object)

Expand Down
5 changes: 5 additions & 0 deletions src/widgets/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .card_widget import CardWidget
from .carousel_widget import CarouselWidget
from .generic_track_widget import GenericTrackWidget
from .top_hit_widget import TopHitWidget
from .tracks_list_widget import TracksListWidget

0 comments on commit 2807e84

Please sign in to comment.