Skip to content

Commit

Permalink
Fixed progress bar in Radmash Uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
CompuGenius-Programs committed Jun 30, 2024
1 parent 66a1c75 commit 210f1d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from datetime import datetime

import requests
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, \
QPushButton, QFileDialog, QMessageBox, QComboBox, QProgressDialog
from convertdate import hebrew
Expand Down Expand Up @@ -174,6 +175,10 @@ def upload_files(self):
return

progress = QProgressDialog("Uploading files...", None, 0, 0, self)
progress.setWindowFlags(progress.windowFlags() & ~(Qt.WindowCloseButtonHint | Qt.WindowContextHelpButtonHint))
progress.setWindowTitle("Radmash Uploader")
progress.show()

try:
response = requests.post(server_url + '/upload', files=self.get_files_payload(),
data=self.get_data_payload())
Expand Down

0 comments on commit 210f1d6

Please sign in to comment.