Skip to content

Commit 210f1d6

Browse files
Fixed progress bar in Radmash Uploader
1 parent 66a1c75 commit 210f1d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from datetime import datetime
55

66
import requests
7+
from PyQt5.QtCore import Qt
78
from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, \
89
QPushButton, QFileDialog, QMessageBox, QComboBox, QProgressDialog
910
from convertdate import hebrew
@@ -174,6 +175,10 @@ def upload_files(self):
174175
return
175176

176177
progress = QProgressDialog("Uploading files...", None, 0, 0, self)
178+
progress.setWindowFlags(progress.windowFlags() & ~(Qt.WindowCloseButtonHint | Qt.WindowContextHelpButtonHint))
179+
progress.setWindowTitle("Radmash Uploader")
180+
progress.show()
181+
177182
try:
178183
response = requests.post(server_url + '/upload', files=self.get_files_payload(),
179184
data=self.get_data_payload())

0 commit comments

Comments
 (0)