-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
61 lines (57 loc) · 1.32 KB
/
main.py
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#-*- coding:utf-8 -*-
__author__ = 'Administrator'
from mygui import MyMainWindow
from PyQt4 import QtGui
import sys
if __name__=="__main__":
app=QtGui.QApplication(sys.argv)
win=MyMainWindow()
win.show()
sys.exit(app.exec_())
# if __name__ == "__main__":
# import sys
# app = QtGui.QApplication(sys.argv)
# MainWindow = QtGui.QMainWindow()
# ui = Ui_MainWindow()
# ui.setupUi(MainWindow)
# MainWindow.show()
# sys.exit(app.exec_())
# from share import user
# from business.local import SendRecvManage
# from manage.msg import ResultOnCallBack
# import threading
# import time
#
# def getrecv(sock):
# while True:
# sock.recv_all()
#
# def getresult(res):
# while True:
# res.result_deal()
#
# if __name__=="__main__":
# ip="192.168.1.103"
# port=9102
# # connect_flag=user.create_tcp_socket(ip,port)#创建socket
# # if connect_flag:
# print("connect success")
# sock=SendRecvManage()
# res=ResultOnCallBack()
#
# print("get")
# send=threading.Thread(target=getrecv,args=(sock,))
# send.start()
#
# result=threading.Thread(target=getresult,args=(res,))
# result.start()
# print("result")
#
# r=sock.login() #登录
# print(r)
#
# send.join()
# result.join()
#
# print(time.time())
# print("jiesu")