From 3900115d6a9d81da5d4602d1b91502e4319f0892 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Wed, 23 Mar 2016 23:52:58 +0300 Subject: [PATCH] ui fix --- src/file_transfers.py | 2 +- src/mainscreen.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/file_transfers.py b/src/file_transfers.py index 6bb81fc..01d8449 100644 --- a/src/file_transfers.py +++ b/src/file_transfers.py @@ -55,7 +55,7 @@ class FileTransfer(QtCore.QObject): def cancelled(self): if hasattr(self, '_file'): self._file.close() - self._state_changed.signal.emit(TOX_FILE_CONTROL['CANCEL'], self._done / self._size) + self._state_changed.signal.emit(TOX_FILE_CONTROL['CANCEL'], self._done / self._size if self._size else 0) def send_control(self, control): if self._tox.file_control(self._friend_number, self._file_number, control): diff --git a/src/mainscreen.py b/src/mainscreen.py index fc59f61..0ea3af1 100644 --- a/src/mainscreen.py +++ b/src/mainscreen.py @@ -99,7 +99,7 @@ class MainWindow(QtGui.QMainWindow): self.fileTransferButton.setGeometry(QtCore.QRect(460, 65, 90, 55)) self.fileTransferButton.setObjectName("fileTransferButton") self.sendMessageButton = QtGui.QPushButton(Form) - self.sendMessageButton.setGeometry(QtCore.QRect(550, 10, 60, 110)) + self.sendMessageButton.setGeometry(QtCore.QRect(550, 10, 70, 110)) self.sendMessageButton.setObjectName("sendMessageButton") self.sendMessageButton.clicked.connect(self.send_message) @@ -208,7 +208,7 @@ class MainWindow(QtGui.QMainWindow): def setup_right_center(self, widget): self.messages = QtGui.QListWidget(widget) - self.messages.setGeometry(0, 0, 600, 250) + self.messages.setGeometry(0, 0, 620, 250) def initUI(self, tox): self.setMinimumSize(920, 520)