Skip to content

Commit

Permalink
remove unneeded table
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed May 16, 2024
1 parent 1c2965b commit 0a35550
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions tmtccmd/gui/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
QLineEdit,
QMainWindow,
QGridLayout,
QTableWidget,
QWidget,
QLabel,
QCheckBox,
QDoubleSpinBox,
QFrame,
QComboBox,
QPushButton,
QTableWidgetItem,
QMenu,
)
from PyQt6.QtGui import QPixmap, QIcon, QFont, QAction
Expand All @@ -47,6 +45,9 @@
from tmtccmd.logging import get_console_logger
import tmtccmd as mod_root

LOGO_PATH = Path(f"{Path(mod_root.__file__).parent.parent}/misc/logo-tiny.png")


LOGGER = get_console_logger()


Expand All @@ -64,9 +65,7 @@ def __init__(
self._last_selected_items = deque()
self._state = FrontendState()
self._thread_pool = QThreadPool()
self.logo_path = Path(
f"{Path(mod_root.__file__).parent.parent}/misc/logo-tiny.png"
)
self.logo_path = LOGO_PATH

def prepare_start(self, _: Any) -> Process:
return Process(target=self.start)
Expand Down Expand Up @@ -358,18 +357,3 @@ def __com_if_sel_index_changed(self, index: int):

def __number_timeout_changed(self, value: float):
LOGGER.info("PUS TM timeout changed to: " + str(value))


class SingleCommandTable(QTableWidget):
def __init__(self):
super().__init__()
self.setRowCount(1)
self.setColumnCount(5)
self.setHorizontalHeaderItem(0, QTableWidgetItem("Service"))
self.setHorizontalHeaderItem(1, QTableWidgetItem("Subservice"))
self.setHorizontalHeaderItem(2, QTableWidgetItem("SSC"))
self.setHorizontalHeaderItem(3, QTableWidgetItem("Data"))
self.setHorizontalHeaderItem(4, QTableWidgetItem("CRC"))
self.setItem(0, 0, QTableWidgetItem("17"))
self.setItem(0, 1, QTableWidgetItem("1"))
self.setItem(0, 2, QTableWidgetItem("20"))

0 comments on commit 0a35550

Please sign in to comment.