21f7b3a1fd63 — cedricbonhomme 10 years ago
Removed useless tuxdroid import.
1 files changed, 0 insertions(+), 24 deletions(-)

M source/simpleGui.py
M source/simpleGui.py +0 -24
@@ 42,11 42,6 @@ import tkFileDialog
 
 from Tkinter import *
 
-try:
-    import tuxdroid
-except Exception, e:
-    print e
-
 import clientAgent
 
 from security import rsa

          
@@ 101,12 96,6 @@ class SimpleGui(object):
         #self.master.minsize(width = 140, height = 40)
         self.master.resizable(height = False, width = False)
 
-        # Connection with Tux Droid
-        self.tuxy = None
-        self.tuxy_thread = threading.Thread(None, self.connect_to_tux, None, (), {})
-        self.tuxy_thread.setDaemon(True)
-        self.tuxy_thread.start()
-
         # Create the menu
         self.__create_menu()
 

          
@@ 202,19 191,6 @@ class SimpleGui(object):
                 padx = 10, pady = 10, justify = LEFT, **labelTextStyle)
         self.connection_info.grid(row = 1, column = 4, sticky = W)
 
-    def connect_to_tux(self):
-        """Launch the connection with Tux Droid.
-
-        Called in a new thread at gui launch.
-        """
-        try:
-            self.tuxy = tuxdroid.Tux() # blocking instruction
-        except NameError:
-            pass       # already managed at 'tuxdroid' import
-        except Exception, e:
-            print e # exceptions coming from tuxdroid module
-            self.tuxy = None
-
     def connect_to_platform(self):
         """
         """