Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit eb603c2

Browse files
committed
Fix unexpected type 'float' labelImg in labelDialog
1 parent 1c94399 commit eb603c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/labelDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def pop_up(self, text='', move=True):
7171
self.adjustSize()
7272
btn.adjustSize()
7373
offset = btn.mapToGlobal(btn.pos()) - self.pos()
74-
offset += QPoint(btn.size().width()/4, btn.size().height()/2)
74+
offset += QPoint(btn.size().width() // 4, btn.size().height() // 2)
7575
cursor_pos.setX(max(0, cursor_pos.x() - offset.x()))
7676
cursor_pos.setY(max(0, cursor_pos.y() - offset.y()))
7777

0 commit comments

Comments
 (0)