Skip to content

Commit 25fa5cd

Browse files
committed
update: optimize project structure
1 parent 9c0b3d0 commit 25fa5cd

File tree

16 files changed

+26
-26
lines changed

16 files changed

+26
-26
lines changed

deviceShare.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sys
2-
from PyQt5.QtWidgets import QApplication, QDialog, QVBoxLayout, QPushButton, QLabel
2+
from PyQt5.QtWidgets import QApplication, QDialog, QVBoxLayout, QPushButton
33
import qt_material
4-
from src.sharer.client import Client
5-
from src.sharer.server import Server
4+
from src.client import Client
5+
from src.server import Server
66

77

88
class RoleSelectionDialog(QDialog):

src/sharer/client.py renamed to src/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
from src.controller.clipboard_controller import get_clipboard_controller
77
from src.controller.keyboard_controller import KeyboardController, get_keyboard_controller
8-
from src.screen_manager.client_gui import ClientGUI
9-
from src.screen_manager.position import Position
10-
from src.my_socket.message import Message, MsgType
8+
from src.gui.client_gui import ClientGUI
9+
from src.gui.position import Position
10+
from src.communication.message import Message, MsgType
1111
from src.controller.mouse_controller import MouseController, get_click_button
12-
from src.my_socket.my_socket import Udp, TcpClient, UDP_PORT, TCP_PORT, read_data_from_tcp_socket
12+
from src.communication.my_socket import Udp, TcpClient, UDP_PORT, TCP_PORT, read_data_from_tcp_socket
1313
from screeninfo import get_monitors
1414

1515
from src.utils.device_name import get_device_name
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/my_socket/my_socket.py renamed to src/communication/my_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import socket
22
import struct
33

4-
from src.my_socket.message import WRONG_MESSAGE
4+
from src.communication.message import WRONG_MESSAGE
55

66
UDP_PORT = 16666
77
TCP_PORT = 16667

src/device/device.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import time
2-
from src.screen_manager.position import Position
3-
from src.screen_manager.screen import Screen
4-
from src.my_socket.my_socket import UDP_PORT
2+
from src.gui.position import Position
3+
from src.gui.screen import Screen
4+
from src.communication.my_socket import UDP_PORT
55

66

77
class Device:

src/device/device_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import time
44

55
from src.device.device import Device
6-
from src.screen_manager.position import Position
7-
from src.screen_manager.screen import Screen
6+
from src.gui.position import Position
7+
from src.gui.screen import Screen
88

99

1010
class DeviceManager:
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)