Skip to content

Commit

Permalink
QTextEdit.setLineWrapMode - use Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
gselzer committed Oct 14, 2024
1 parent 5776331 commit 13627ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/napari_imagej/widgets/widget_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __init__(self, title: str, error_message: str, *args, **kwargs):
msg_edit.setReadOnly(True)
msg_edit.setText(error_message)
self.layout().addWidget(msg_edit, 1, 0, 1, self.layout().columnCount())
msg_edit.setLineWrapMode(0)
msg_edit.setLineWrapMode(QTextEdit.LineWrapMode.NoWrap)

# Default size - size of the error message
font = msg_edit.document().defaultFont()
Expand Down

1 comment on commit 13627ff

@imagesc-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/napari-imagej-plugin-initialisation-error/83834/5

Please sign in to comment.