개정판 23a7dd60
typo
Change-Id: I7ef06e8ba913b5de68bf4f34c699bf59b7c56fae
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
2988 | 2988 |
|
2989 | 2989 |
modifiers = QApplication.keyboardModifiers() |
2990 | 2990 |
enter_or_space = ' ' if modifiers == Qt.ControlModifier else ('\n' if modifiers != Qt.AltModifier else '') |
2991 |
x_or_y = 0 if (modifiers == Qt.ControlModifier and angle == 0) or (modifiers != Qt.ControlModifier and angle == 1.57) else (1 \ |
|
2992 |
) |
|
2991 |
x_or_y = 0 if (modifiers == Qt.ControlModifier and angle == 0) or (modifiers != Qt.ControlModifier and angle == 1.57) else 1 |
|
2993 | 2992 |
|
2994 | 2993 |
textItems = sorted(textItems, key=lambda text: text.loc[x_or_y]) if textItems[0].angle == 0 else ( \ |
2995 | 2994 |
sorted(textItems, key=lambda text: text.loc[x_or_y]) if textItems[0].angle == 1.57 else ( \ |
내보내기 Unified diff