Fixed import that won't work if the script isn't executed by pycharm.
This commit is contained in:
parent
4918d70d53
commit
3dfb07ab14
3 changed files with 11 additions and 11 deletions
|
@ -38,6 +38,7 @@ class GUICommunication:
|
|||
self.app.player.seek(self.track_control.track_progress_slider.value())
|
||||
|
||||
def on_track_start(self):
|
||||
if self.app.player.playing:
|
||||
duration = self.app.player.playing_track.duration
|
||||
|
||||
self.track_control.track_progress_slider.setRange(
|
||||
|
@ -50,7 +51,7 @@ class GUICommunication:
|
|||
self.update_progress()
|
||||
|
||||
def update_progress(self):
|
||||
if not self.track_progress_slider_dragged:
|
||||
if self.app.player.playing and not self.track_progress_slider_dragged:
|
||||
remaining = self.app.player.track_progress.timer.remainingTime()
|
||||
|
||||
if remaining == -1:
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import sys
|
||||
from PyQt6.QtWidgets import QApplication
|
||||
from utils import Utils
|
||||
from wobuzz.player.player import Player
|
||||
from player.player import Player
|
||||
from gui import GUI
|
||||
from gui_communication import GUICommunication
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
import os
|
||||
|
||||
from PyQt6.QtCore import QTimer
|
||||
import pygame.mixer
|
||||
import pygame.event
|
||||
from .track import Track
|
||||
|
@ -23,7 +22,7 @@ class Player:
|
|||
self.searched = False
|
||||
|
||||
if not file_paths:
|
||||
pass
|
||||
self.current_playlist = []
|
||||
# loading of last opened files will be implemented in the future
|
||||
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue