Skip to content

Commit c58b225

Browse files
committed
cleanup
1 parent 041ab07 commit c58b225

File tree

1 file changed

+3
-4
lines changed
  • src/kevinbotlib_dashboard

1 file changed

+3
-4
lines changed

src/kevinbotlib_dashboard/app.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import override
44

55
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
77
from PySide6.QtGui import QAction, QBrush, QCloseEvent, QColor, QPainter, QPen, QRegularExpressionValidator
88
from PySide6.QtWidgets import (
99
QDialog,
@@ -12,6 +12,7 @@
1212
QGraphicsScene,
1313
QGraphicsView,
1414
QHBoxLayout,
15+
QLabel,
1516
QLineEdit,
1617
QMainWindow,
1718
QMenu,
@@ -21,7 +22,6 @@
2122
QStyleOptionGraphicsItem,
2223
QVBoxLayout,
2324
QWidget,
24-
QLabel,
2525
)
2626

2727
from kevinbotlib_dashboard.grid_theme import Themes
@@ -527,12 +527,11 @@ def on_connect(self):
527527
def on_disconnect(self):
528528
self.connection_status.setText("Robot Disconnected")
529529

530-
531530
def refresh_settings(self):
532531
self.settings.setValue("ip", self.settings_window.net_ip.text())
533532
self.settings.setValue("port", self.settings_window.net_port.value())
534533
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
536535

537536
self.ip_status.setText(str(self.settings.value("ip", "10.0.0.2", str)))
538537

0 commit comments

Comments
 (0)