warum ist das in python falsch? from PyQt6.QtWidgets import ( QMainWindow, QVBoxLayout,…
- User
warum ist das in python falsch? from PyQt6.QtWidgets import ( QMainWindow, QVBoxLayout, QHBoxLayout, QWidget, QPushButton, QLineEdit, QLabel, QProgressBar, QTextEdit, QListWidget, QFileDialog, QMessageBox ) if result == QDialog.Accepted: ...
Assistant
Das Problem liegt daran, dass Sie
QDialogverwenden, aber nicht importiert haben. In Ihrem Import-Statement fehltQDialog.Ihr aktueller Import:
from PyQt6.QtWidgets import ( QMainWindow, QVBoxLayout, QHBoxLayout, QWidget, QPushButton, QLineEdit, QLabel, QProgressBar, QTextEdit, QListWidget, QFileDialog, QMessageBox )Korrigierter Import:
from PyQt6.QtWidgets import ( QMainWindow, QVBoxLayout, QHBoxLayout, QWidget, QPushButton, QLineEdit, QLabel, QProgressBar, QTextEdit, QListWidget, QFileDialog, QMessageBox, QDialog )
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.