changeset 35:bb8b1d9c52b2

rename instance variable
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 29 Oct 2016 02:30:41 +0200
parents daf6c811d104
children 5b6e65b90784
files RemoteViewer/Viewer.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/RemoteViewer/Viewer.py	Thu Nov 27 12:13:37 2014 +0100
+++ b/RemoteViewer/Viewer.py	Sat Oct 29 02:30:41 2016 +0200
@@ -5,22 +5,22 @@
 from .PasswordDialog import PasswordDialog
 
 class ReadThread(Thread):
-    def __init__(self, process, viewer):
+    def __init__(self, process, logViewer):
         super(ReadThread, self).__init__()
         self.daemon = True
         self.process = process
-        self.viewer = viewer
+        self.logViewer = logViewer
 
     def run(self):
         loop = True
         while loop:
             if self.process.poll() is not None:
-                self.viewer.finish()
+                self.logViewer.finish()
                 loop = False
             line = self.process.stdout.readline()
             line = line.decode('utf-8')
             line = line.rstrip('\n')
-            self.viewer.append(line)
+            self.logViewer.append(line)
 
 class AbstractViewer(object):
     def __init__(self,  connection):