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 4953616 commit 71cf682
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/python/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.blank = QTableWidgetItem()
self.blank.setSizeHint(QSize(0, 0))
#self.setColumnCount(6)
#for r in range(6):
# self.setHorizontalHeaderItem(r, self.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 @@ -165,9 +158,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 @@ -191,5 +182,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 71cf682

Please sign in to comment.