Bonjour j'ai un problem en exec_
Fermé
jawadov11
Messages postés
39
Date d'inscription
lundi 27 mai 2019
Statut
Membre
Dernière intervention
6 juin 2020
-
Modifié le 5 juin 2020 à 18:45
yg_be Messages postés 23514 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 4 avril 2025 - 11 juin 2020 à 14:39
yg_be Messages postés 23514 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 4 avril 2025 - 11 juin 2020 à 14:39
on me dit
AttributeError: 'App' object has no attribute 'exec_'
voici le code
AttributeError: 'App' object has no attribute 'exec_'
voici le code
from PySide2 import QtWidgets class App(QtWidgets.QWidget): def __init__(self): super().__init__() self.setWindowTitle("hello") app=QtWidgets.QApplication([]) win=App() win.exec_()
A voir également:
- Attributeerror: 'qapplication' object has no attribute 'exec_'
- No tftp response ✓ - Forum Mobile
- Shockwave flash object - Télécharger - Divers Web & Internet
- Nº sur clavier ✓ - Forum Bureautique
- Dns probe finished no internet ✓ - Forum DNS
- No boot disk has been detected or the disk has failed - Forum Disque dur / SSD
2 réponses
yg_be
Messages postés
23514
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
4 avril 2025
Ambassadeur
1 575
6 juin 2020 à 10:17
6 juin 2020 à 10:17
bonjour, peux-tu corriger l'indentation de ton code?
Modifié le 6 juin 2020 à 13:06
6 juin 2020 à 13:06
6 juin 2020 à 13:27
nom de classe
méthode main
constructeur
var
hors la classes des méthodes
just des espaces qui marquent la fin d une action
6 juin 2020 à 13:29