Mercurial > hg > RemoteViewer
changeset 37:09af29ca763f default tip
more fixes to run with PyQt5
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 23 Dec 2017 02:56:24 +0100 |
parents | 5b6e65b90784 |
children | |
files | RemoteViewer/ConnectionDialog.py RemoteViewer/RemoteViewer.py RemoteViewer/RemoteViewer.ui |
diffstat | 3 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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):
--- 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()