Skip to content

Commit

Permalink
fix expansion problem in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Mar 20, 2024
1 parent f421d8a commit 849bf1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/HolocronToolset/src/toolset/gui/editors/gff.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,11 @@ def set_spinbox(minv: int, maxv: int, item: QListWidgetItem):
child.widget().deleteLater()

# Display raw binary data in a QLabel with word wrapping enabled
binaryDataLabel = QLabel(f"Binary Data: {binaryData}")
binaryDataLabel = QLabel(f"{binaryData}")
binaryDataLabel.setWordWrap(True)
binaryDataLabel.setFont(QFont("Courier New", 8)) # Set a monospaced font
binaryDataLabel.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Preferred)
binaryDataLabel.setMaximumWidth(self.ui.blankPage.width()) # Set the max width to the parent's width
binaryDataLabel.setMaximumWidth(self.ui.blankPage.width()-20) # Set the max width to the parent's width

self.ui.blankPage.layout().addWidget(binaryDataLabel)

Expand Down

0 comments on commit 849bf1f

Please sign in to comment.