-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGlobClient.py
More file actions
34 lines (27 loc) · 802 Bytes
/
GlobClient.py
File metadata and controls
34 lines (27 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from InterfaceClient import *
from Client import *
import threading
import time
class ThreadClient2 (threading.Thread):
def __init__(self, conn):
self.con = conn
threading.Thread.__init__(self)
def run(self):
while(not self.con.bool):
pass
self.con.root.quit()
#time.sleep(5)
self.client = Client(self.con.socket)
time.sleep(5)
inter = InterClient(self.client)
inter.panel()
inter.root2.mainloop()
print("fin 2 fenetre")
self.con.socket.send("/rquit".encode("utf8"))
self.con.socket.close()
self.client.ter()
connection = InterConn()
connection.SetPanel()
connection.root.mainloop()
ttttt = ThreadClient2(connection)
ttttt.run()