Python Forum
[PyQt] App crashes when reopening a subwindow
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] App crashes when reopening a subwindow
#4
line 140, in <module>
ui.setupUi(MainWindow)
line 15, in setupUi
self.ui.mdiArea = QtWidgets.QMdiArea()
AttributeError: 'Ui_MainWindow' object has no attribute 'ui'


also ui = Ui_MainWindow() - ui.setupUi(MainWindow) When you remove these two, the window opens. I would like to solve your mistake but now I will go to sleep
Reply


Messages In This Thread
App crashes when reopening a subwindow - by JayCee - Aug-03-2021, 01:58 AM
RE: App crashes when reopening a subwindow - by JokerSob - Aug-03-2021, 04:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  GUI crashes flash77 3 1,104 Jul-26-2023, 05:09 PM
Last Post: flash77
  [Tkinter] Clicking on the button crashes the TK window ODOshmockenberg 1 2,379 Mar-10-2022, 05:18 PM
Last Post: deanhystad
  [PyQt] Subwindow catlessness 5 3,035 Oct-23-2021, 06:28 PM
Last Post: catlessness
  [PyQt] Can't neither setWindowFlags nor setFixedSize of a subwindow. JayCee 10 4,444 Aug-06-2021, 08:06 PM
Last Post: JayCee
  Running external Python file as a subwindow JayCee 13 4,228 Aug-05-2021, 05:47 AM
Last Post: ndc85430
  [PyGUI] My GUI crashes after command MLGpotato 1 2,016 Feb-21-2021, 03:17 PM
Last Post: deanhystad
  [PyQt] PyQT5 Thread crashes after a while Suresh 0 2,094 Jul-21-2020, 07:53 AM
Last Post: Suresh
  PyQt5 : Interpreter Crashes While Initializing Message Box iMuny 7 6,067 Aug-29-2019, 01:38 PM
Last Post: iMuny

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020