Skip to content

Commit

Permalink
해치웠나
Browse files Browse the repository at this point in the history
  • Loading branch information
Hperigee committed Jun 17, 2023
1 parent 58df623 commit 115f8c3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/venv/
7 changes: 4 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions Interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ def start_input(self):
def handle_analysis_result(self, result):
# Process the analysis result
new_song = assets.SongFile(1, result)
self.add_new_widget(new_song)
new_song_recommend = assets.SongFile(1, result)
self.add_new_widget(new_song,new_song_recommend)
# Re-enable the button
notification_window = assets.NotiFication("New Song Uploaded", 3000,
self.main) # Display the notification for 3000 milliseconds (3 seconds)
Expand Down Expand Up @@ -451,17 +452,17 @@ def add_widget_in_song_list(self, song_widget):
self._sort_widgets()
self.layout.update()

def add_new_widget(self, song_widget):
def add_new_widget(self, song_widget,song_widget_recommend):
global song_added
self.main.song_widget_list = [song_widget] + self.main.song_widget_list
self.main.song_widget_recommend_list = [song_widget] + self.main.song_widget_recommend_list
self.main.song_widget_recommend_list = [song_widget_recommend] + self.main.song_widget_recommend_list
if self.name in song_widget.label1.text():
print(self.name, song_widget.label1.text())
#print(self.name, song_widget.label1.text())
self.layout.insertWidget(0, song_widget)
self.to_display = [song_widget] + self.to_display
song_widget.clicked.connect(self.main._handle_song_file_click)
song_widget_recommend.clicked.connect(self.main._handle_song_file_click)
song_added = True
print(song_added)
self._sort_widgets()
self.layout.update()

Expand Down
3 changes: 2 additions & 1 deletion VocalMaximum.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ if not exist venv\Scripts\activate.bat (
REM Step 3: Activate virtual environment and install requirements
echo Activating virtual environment...
call venv\Scripts\activate
pip install --upgrade pip
echo Installing requirements...
pip install --no-cache-dir --no-deps -r requirements.txt
pip install --no-deps -r requirements.txt
echo Requirements installed.

REM Step 4: Run Python file using the virtual environment
Expand Down
Binary file modified profile.dat
Binary file not shown.

0 comments on commit 115f8c3

Please sign in to comment.