# HG changeset patch # User Dirk Olmes # Date 1513994184 -3600 # Node ID 09af29ca763f10d4a8fc7d0ada522ff255a6a496 # Parent 5b6e65b90784aff19e1971c788852cc3afb679e8 more fixes to run with PyQt5 diff -r 5b6e65b90784 -r 09af29ca763f RemoteViewer/ConnectionDialog.py --- a/RemoteViewer/ConnectionDialog.py Fri Nov 10 01:26:41 2017 +0100 +++ b/RemoteViewer/ConnectionDialog.py Sat Dec 23 02:56:24 2017 +0100 @@ -1,3 +1,4 @@ +from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QDialog from .Connection import Connection from .Connection import Type @@ -50,7 +51,6 @@ def __applyType(self): index = self.types.index(self.connection.type) - print('index:', index) self.ui.type.setCurrentIndex(index) def typeSelected(self, type): diff -r 5b6e65b90784 -r 09af29ca763f RemoteViewer/RemoteViewer.py --- a/RemoteViewer/RemoteViewer.py Fri Nov 10 01:26:41 2017 +0100 +++ b/RemoteViewer/RemoteViewer.py Sat Dec 23 02:56:24 2017 +0100 @@ -29,7 +29,7 @@ self.ui.actionDelete.setEnabled(True) @ExceptionSafeSlot() - def newConnection(self): + def newConnection(self, checked): dialog = ConnectionDialog('New Connection') success = dialog.exec_() if success: @@ -38,14 +38,14 @@ self.__initHostList() @ExceptionSafeSlot() - def editConnection(self): + def editConnection(self, checked): title = 'Edit {}'.format(self.activeConnection.displayString()) dialog = ConnectionDialog(title, self.activeConnection) dialog.exec_() self.settings.updateConnection(self.activeConnection) @ExceptionSafeSlot() - def deleteConnection(self): + def deleteConnection(self, checked): self.settings.deleteConnection(self.activeConnection) self.__initHostList() diff -r 5b6e65b90784 -r 09af29ca763f RemoteViewer/RemoteViewer.ui --- a/RemoteViewer/RemoteViewer.ui Fri Nov 10 01:26:41 2017 +0100 +++ b/RemoteViewer/RemoteViewer.ui Sat Dec 23 02:56:24 2017 +0100 @@ -30,7 +30,7 @@ 0 0 439 - 23 + 20