thecocce / pyscripter

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

simple app won't close in pyscripter #349

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PROBLEM:
simple app won't close in pyscripter 1.9.9.6
in fact, any app won't close 

CONTEXT & ENVIRONMENT
I'm experimenting with gtk
Vista family premium 64-bit, SP2 

SYMPTOM
Clicking on the 'x' on the upper right corner of the window "seems to 
react": the app disappear but remain on the taskbar.
Clicking on it brings it back but then, it beeps if I try to close it 
again.

CODE EXAMPLE (borrowed from the net)
import gtk

class PyApp(gtk.Window):
    def __init__(self):
        super(PyApp, self).__init__()

        self.connect("destroy", gtk.main_quit)
        self.set_size_request(250, 150)
        self.set_position(gtk.WIN_POS_CENTER)
        self.show()

PyApp()
gtk.main()

Original issue reported on code.google.com by richard....@gmail.com on 16 Dec 2009 at 12:17

GoogleCodeExporter commented 9 years ago
I forgot to specify which version of Python I'm using.
Here it is:

Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on
win32

Original comment by richard....@gmail.com on 16 Dec 2009 at 2:21

GoogleCodeExporter commented 9 years ago
Solution: Do not run the 64-bits version of wxPython over Python 32-bits.

I reinstalled 
Python v2.6.4  (python-2.6.4.msi)
wxPython 2.6   (wxPython2.8-win32-ansi-2.8.10.1-py26.exe)

demo.py works fine now.

Original comment by richard....@gmail.com on 22 Dec 2009 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 2 Jan 2010 at 4:10