8000 Show significant digits by default in QLineEdit. · matplotlib/matplotlib@8dd6276 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8dd6276

Browse files
committed
Show significant digits by default in QLineEdit.
1 parent 02f4cdb commit 8dd6276

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/qt_editor/formlayout.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ def setup(self):
296296
field.setCheckState(QtCore.Qt.Unchecked)
297297
elif isinstance(value, float):
298298
field = QtWidgets.QLineEdit(repr(value), self)
299+
field.setCursorPosition(0)
299300
field.setValidator(QtGui.QDoubleValidator(field))
300301
dialog = self.get_dialog()
301302
dialog.register_float_field(field)

0 commit comments

Comments
 (0)
0