Skip to content

Commit

Permalink
clean up test code
Browse files Browse the repository at this point in the history
  • Loading branch information
X-sam committed Jul 8, 2024
1 parent 92c9380 commit 8ca4b01
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/python/main/ayab/knitprogress.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,13 @@ def __init__(self, parent: GuiMain):
self.verticalHeader().setSectionResizeMode(
QHeaderView.ResizeMode.ResizeToContents
)
# self.verticalHeader().setVisible(False)
self.setColumnCount(6)
for r in range(6):
blank = QTableWidgetItem()
blank.setSizeHint(QSize(0, 0))
self.setHorizontalHeaderItem(r, blank)
self.previousStatus: Optional[Status] = None
self.scene = parent.scene

def start(self) -> None:
self.clearContents()
self.clearSelection()
self.setRowCount(0)
# self.horizontalHeader().setSectionHidden(5, False)
self.setCurrentCell(-1, -1)
self.color = True

Expand Down Expand Up @@ -164,9 +157,7 @@ def update_progress(
header.setForeground(QBrush(QColor(f"#{self.green:06x}")))
header.setTextAlignment(Qt.AlignmentFlag.AlignCenter)
self.setHorizontalHeaderItem(i,header)
# self.horizontalHeaderItem(i).setText((i)-(midline+info_columns))
n_cols = len(columns)
print(n_cols)
if n_cols < 4:
self.hideColumn(5)
self.resizeColumnsToContents()
Expand All @@ -190,5 +181,4 @@ def __stitch(self, color: int, bit: bool, alt_color: Optional[int] = None, bg_co
else:
if bg_color is not None:
stitch.setBackground(QBrush(QColor(f"#{bg_color:06x}")))
# text += "dotted;"
return stitch

0 comments on commit 8ca4b01

Please sign in to comment.