13 Commits

Author SHA1 Message Date
Stefan Breunig
0c377fc258
move "OK" button below cursor when opening label dialog (#893)
The intent for this change is to allow faster labeling when there
are streaks of the same label occasionally, but not consistently
enough to enable "default label" mode. With this PR the user can
simply click again to confirm the previous selection, without
having to aim for the OK button, or move either hand to the
ENTER button.

The alignment and position change of the buttons is for two reasons:
- it covers less of the drawn shape, easing verification of the
  label to be selected
- the alignment wasn't taken into account for offset calculation.
  It works if the dialog is shown, but that causes the dialog to
  briefly flicker in the old position. Presumably an `adjustSize`
  or similar is needed on more widgets, but I was unable to
  figure out which.
2022-06-12 10:12:19 -07:00
ngc92
58406b578a
adds a utility function to hide a QT5/QT4 discrepancy (#765)
Co-authored-by: erik <ersre>
2021-07-25 09:09:01 -07:00
Cerno_b
c35f09747a
Pep 8 (#720)
* rename local variables in main file

* additional renaming of functions and variables

* Rename main file functions

* Rename functions and variables in canvas.py

* Rename functions and locals for remaining files

* Rename non-Qt derived class' members

* Rename members of Qt-derived classes

* Fix paint label issue
2021-03-14 16:56:14 -07:00
Chris Rapson (AT)
544cfb9e3c adjust position of popup labelDialog to make sure it is within edge of main window 2020-09-12 00:15:20 -07:00
tzutalin
ca28daddec Rename lib.py to utils.py and add test cases for natural sort 2019-01-26 23:16:21 -08:00
wenliwyan
5f9f17f9b4 Add item single click slot in labelDialog.py (#312)
* Add item single click slot in labelDialog.py

In the original code, double clicking a list item will set the text property and automatically validate afterwards, with the label dialog window disappearing.

In this revised version, double click behavior is unchanged, while single click is added. When single clicking a list item, it will only set text in the QLineEdit. Users can change the text by clicking other items before validating themselves by clicking yes.
2018-06-13 21:13:28 -07:00
Golovanov
ca10b0dd2a add completer for label 2018-03-31 11:24:11 -07:00
tzutalin
14edc88a64 Fix runtime errors for py3qt5 2017-07-25 16:43:04 +08:00
Thibaut Mattio
c5c2a34a39 Apply PEP recommendation on formatting
Running pylint to make the code complient with PEP recommendations on lintage.
2017-02-28 11:50:15 +08:00
Ryan Flynn
2beed27cf2 add support for QT5, fallback to QT4 2017-01-02 21:55:30 -05:00
tzutalin
66645103e5 Merge features: 1.autoSaving while nexting 2.Add predefined classes 3. avoid using 0-valued coordinates, from https://github.com/tzutalin/labelImg/pull/1 2015-11-20 23:43:03 +08:00
TzuTa Lin
87dab57ec9 Labels will be added to history and re-use it while showing pop window 2015-11-17 10:50:28 +08:00
TzuTa Lin
8d81647864 mv some of python files to libs 2015-09-17 15:22:58 +08:00