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 aa13812

Browse filesBrowse files
committed
Merge pull request #5893 from anntzer/lineedit-cursorposition
FIX: Show significant digits by default in QLineEdit.
1 parent 3fc9364 commit aa13812
Copy full SHA for aa13812

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎lib/matplotlib/backends/qt_editor/formlayout.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/qt_editor/formlayout.py
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.