Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on add photo #1

Open
parsibox opened this issue Jan 18, 2022 · 0 comments
Open

error on add photo #1

parsibox opened this issue Jan 18, 2022 · 0 comments

Comments

@parsibox
Copy link

hi
when press add photo button show this error:

python.exe D:/python/test/Users-Management/main.py
in select func
[(1, 'maryam Boneh', '0924545484', '1999-2-17', 'me.jpg'), (2, 'zeynab mostafavi', '098645644', '2000-1-10', 'zizi.jpg')]
self.length:  2
Traceback (most recent call last):
  File "D:\python\test\Users-Management\Camera.py", line 127, in savePhoto
    self.lbl_photo.setPixmap(f"assets/img/users/{self.num}.jpg")
ValueError: 'PySide6.QtWidgets.QLabel.setPixmap' called with wrong argument values:
  PySide6.QtWidgets.QLabel.setPixmap('assets/img/users/2.jpg',)
Found signature:
  PySide6.QtWidgets.QLabel.setPixmap(Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str])
Traceback (most recent call last):
  File "D:\python\test\Users-Management\Camera.py", line 127, in savePhoto
    self.lbl_photo.setPixmap(f"assets/img/users/{self.num}.jpg")
ValueError: 'PySide6.QtWidgets.QLabel.setPixmap' called with wrong argument values:
  PySide6.QtWidgets.QLabel.setPixmap('assets/img/users/2.jpg',)
Found signature:
  PySide6.QtWidgets.QLabel.setPixmap(Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str])
Traceback (most recent call last):
  File "D:\python\test\Users-Management\Camera.py", line 127, in savePhoto
    self.lbl_photo.setPixmap(f"assets/img/users/{self.num}.jpg")
ValueError: 'PySide6.QtWidgets.QLabel.setPixmap' called with wrong argument values:
  PySide6.QtWidgets.QLabel.setPixmap('assets/img/users/2.jpg',)
Found signature:
  PySide6.QtWidgets.QLabel.setPixmap(Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str])
Traceback (most recent call last):
  File "D:\python\test\Users-Management\Camera.py", line 127, in savePhoto
    self.lbl_photo.setPixmap(f"assets/img/users/{self.num}.jpg")
ValueError: 'PySide6.QtWidgets.QLabel.setPixmap' called with wrong argument values:
  PySide6.QtWidgets.QLabel.setPixmap('assets/img/users/2.jpg',)
Found signature:
  PySide6.QtWidgets.QLabel.setPixmap(Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str])
Traceback (most recent call last):
  File "D:\python\test\Users-Management\Camera.py", line 127, in savePhoto
    self.lbl_photo.setPixmap(f"assets/img/users/{self.num}.jpg")
ValueError: 'PySide6.QtWidgets.QLabel.setPixmap' called with wrong argument values:
  PySide6.QtWidgets.QLabel.setPixmap('assets/img/users/2.jpg',)
Found signature:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant