|
3 | 3 | from typing import override
|
4 | 4 |
|
5 | 5 | from kevinbotlib.comm import KevinbotCommClient
|
6 |
| -from PySide6.QtCore import QObject, QPointF, QRect, QRectF, QRegularExpression, QSettings, QSize, Qt, Signal, QTimer |
| 6 | +from PySide6.QtCore import QObject, QPointF, QRect, QRectF, QRegularExpression, QSettings, QSize, Qt, QTimer, Signal |
7 | 7 | from PySide6.QtGui import QAction, QBrush, QCloseEvent, QColor, QPainter, QPen, QRegularExpressionValidator
|
8 | 8 | from PySide6.QtWidgets import (
|
9 | 9 | QDialog,
|
|
12 | 12 | QGraphicsScene,
|
13 | 13 | QGraphicsView,
|
14 | 14 | QHBoxLayout,
|
| 15 | + QLabel, |
15 | 16 | QLineEdit,
|
16 | 17 | QMainWindow,
|
17 | 18 | QMenu,
|
|
21 | 22 | QStyleOptionGraphicsItem,
|
22 | 23 | QVBoxLayout,
|
23 | 24 | QWidget,
|
24 |
| - QLabel, |
25 | 25 | )
|
26 | 26 |
|
27 | 27 | from kevinbotlib_dashboard.grid_theme import Themes
|
@@ -527,12 +527,11 @@ def on_connect(self):
|
527 | 527 | def on_disconnect(self):
|
528 | 528 | self.connection_status.setText("Robot Disconnected")
|
529 | 529 |
|
530 |
| - |
531 | 530 | def refresh_settings(self):
|
532 | 531 | self.settings.setValue("ip", self.settings_window.net_ip.text())
|
533 | 532 | self.settings.setValue("port", self.settings_window.net_port.value())
|
534 | 533 | self.client.host = self.settings.value("ip", "10.0.0.2", str) # type: ignore
|
535 |
| - self.client.port = self.settings.value("port", 8765, int) # type: ignore |
| 534 | + self.client.port = self.settings.value("port", 8765, int) # type: ignore |
536 | 535 |
|
537 | 536 | self.ip_status.setText(str(self.settings.value("ip", "10.0.0.2", str)))
|
538 | 537 |
|
|
0 commit comments