ouilles / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Crash when running twice a PyQt example #719

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install PyQt4 (Windows x86 version for Python 2.7 32-bit)
2. Create a new document and paste the following code:

#!/usr/bin/env python
# -*- coding: latin1 -*-

import sys
from PyQt4 import QtGui, QtCore

app = QtGui.QApplication(sys.argv)
push = QtGui.QPushButton("Botao")

push.show()

app.exec_()

2. Run the code. The program works fine. Close the window
3. Run the code again. PyScripter closes itself.

What is the expected output? What do you see instead?
The script should run twice without crashing the editor.

What version of the product are you using? On what operating system?
Version 2.5.3.0(x86) on Windows 7 x64.

Original issue reported on code.google.com by mateusa...@gmail.com on 12 Jan 2013 at 2:05

GoogleCodeExporter commented 9 years ago
Are you using the remote interpreter?
Run, Python Engine, Remote.

Do you have Tools, Option, IDE Options, Interpreter, Reinitialize before run on?
Should be on by default.

Original comment by pyscripter on 23 Mar 2015 at 2:32