Skip to content

Commit

Permalink
Python3+PyQt5.
Browse files Browse the repository at this point in the history
Update code, using Python 3 + pyqt5.
  • Loading branch information
Suhayl committed Mar 26, 2020
1 parent e3ef8ad commit 4a39528
Show file tree
Hide file tree
Showing 26 changed files with 3,698 additions and 3,761 deletions.
6 changes: 3 additions & 3 deletions Client/CloseThreading.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ def stop_thread(thread):

class TestThread(threading.Thread):
def run(self):
print "begin"
print("begin")
while True:
time.sleep(0.1)
print "end"
print("end")
if __name__ == "__main__":
t = TestThread()
t.start()
time.sleep(1)
stop_thread(t)
print "stoped"
print("stoped")
23 changes: 6 additions & 17 deletions Client/Command.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
# -*- coding: utf-8 -*-
"""
******************************************************************************
* File Command.py
* Author Freenove (http://www.freenove.com)
* Date 2016/11/14
******************************************************************************
* Brief
* This is sent by the client to the server command word
******************************************************************************
* Copyright
* Copyright © Freenove (http://www.freenove.com)
* License
* Creative Commons Attribution ShareAlike 3.0
* (http://creativecommons.org/licenses/by-sa/3.0/legalcode)
******************************************************************************
"""

########################################################################
# Filename : Command.py
# Description : This is sent by the client to the server command word
# auther : www.freenove.com
# modification: 2020/03/26
########################################################################
class COMMAND:
CMD_FORWARD = ">Move Forward"
CMD_BACKWARD = ">Move Backward"
Expand Down
2 changes: 1 addition & 1 deletion Client/Config.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
192.168.1.108
192.168.1.121
22 changes: 6 additions & 16 deletions Client/Freenove_Math.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
# -*- coding: utf-8 -*-
"""
******************************************************************************
* File Freenove_Math.py
* Author Freenove (http://www.freenove.com)
* Date 2016/11/14
******************************************************************************
* Brief
* These are the global functions.
******************************************************************************
* Copyright
* Copyright © Freenove (http://www.freenove.com)
* License
* Creative Commons Attribution ShareAlike 3.0
* (http://creativecommons.org/licenses/by-sa/3.0/legalcode)
******************************************************************************
"""
########################################################################
# Filename : Freenove_Math.py
# Description : These are the global functions.
# auther : www.freenove.com
# modification: 2020/03/26
########################################################################
def min(a, b):
if a<b :
return a
Expand Down
29 changes: 8 additions & 21 deletions Client/Message.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
# -*- coding: utf-8 -*-
"""
******************************************************************************
* File Message.py
* Author Freenove (http://www.freenove.com)
* Date 2016/11/14
******************************************************************************
* Brief
* This is the Class Messgae_Dialog code .
******************************************************************************
* Copyright
* Copyright © Freenove (http://www.freenove.com)
* License
* Creative Commons Attribution ShareAlike 3.0
* (http://creativecommons.org/licenses/by-sa/3.0/legalcode)
******************************************************************************
"""
"""
Module implementing Messgae_Dialog.
"""
########################################################################
# Filename : Message.py
# Description : This is the Class Messgae_Dialog code .
# auther : www.freenove.com
# modification: 2020/03/26
########################################################################

from PyQt4.QtCore import pyqtSignature
from PyQt4.QtGui import QDialog
# from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import QDialog

from Ui_Message import Ui_Dialog

Expand Down
Loading

0 comments on commit 4a39528

Please sign in to comment.