testing out a new TUI lib
This commit is contained in:
1 parent
a04dcc85fd
commit
c0986f8d2d
3 files changed
+63
-8
No files matched your search
@@ -42,8 +42,8 @@ class SubPyPlayer:
|
||||
urwid.MainLoop(top, palette=[("reversed", "standout", "")]).run()
|
||||
|
||||
# Currently Blocking
|
||||
def play_song(song_id: str):
|
||||
r = conn.stream(song_id)
|
||||
def play_song(self, song_id: str):
|
||||
r = self.conn.stream(song_id)
|
||||
|
||||
# convert stream to bytes io thing
|
||||
audio_data = io.BytesIO(r.content)
|
||||
@@ -89,5 +89,7 @@ class SubPyPlayer:
|
||||
def exit_program(self, button: urwid.Button) -> None:
|
||||
raise urwid.ExitMainLoop()
|
||||
|
||||
SubPyPlayer(conn)
|
||||
player = SubPyPlayer(conn)
|
||||
|
||||
# player.play_song(echidna_id)
|
||||
|
||||
Reference in new issue
Block a user