Problems with wxPython on Fedora 17

It's early days on Fedora 17 I know (it is only an alpha release at the
moment), but I am seeing problems with Python applications which use
wxPython. They run, and behave largely as expected, but do not close
properly.

When the 'x' at the right hand end of the title bar is clicked nothing
appears to happen. Same applies to clicking 'Close' in the context menu
which is presented on clicking the icon at the left hand end of the title
bar.

Sample application at http://dl.dropbox.com/u/6106778/hello.py . The app
is just an empty "Hello World" frame. It can be moved, resized, minimised
etc. but it won't close.

wxPython 2.8.12, Python 2.7.2.

To help narrow down the problem could you build and test one of the wxWidgets samples? You may also want to try with wxPython 2.9.3 because if this is something specific to the newest versions of GTK, for example, then it will be more likely to have been fixed in the wx trunk rather than the 2.8 branch.

···

On 3/16/12 2:10 PM, Walter Hurry wrote:

It's early days on Fedora 17 I know (it is only an alpha release at the
moment), but I am seeing problems with Python applications which use
wxPython. They run, and behave largely as expected, but do not close
properly.

When the 'x' at the right hand end of the title bar is clicked nothing
appears to happen. Same applies to clicking 'Close' in the context menu
which is presented on clicking the icon at the left hand end of the title
bar.

Sample application at http://dl.dropbox.com/u/6106778/hello.py . The app
is just an empty "Hello World" frame. It can be moved, resized, minimised
etc. but it won't close.

wxPython 2.8.12, Python 2.7.2.

--
Robin Dunn
Software Craftsman

Robin,

Thanks for the reply. I downloaded and installed wxPython 2.9.3.1 (I also
removed my existing version of wxPython to make absolutely sure).

Then I set my PYTHONPATH and LD_LIBRARY_PATH accordingly.

I didn't completely understand your reference to "wxWidgets samples", but
I assume you were referring to the $WXDIR/samples stuff. I did:

cd $WXDIR/samples/minimal
make -f makefile.unx
./minimal

I got an empty form with the title "Minimal wxWidgets App", and Help/
About showed:

Welcome to wxWidgets 2.9.3!

This is the minimal wxWidgets sample
running under Linux 3.3.0-1.fc17.x86_64 x86_64.

The behaviour of the 'x' button at the right hand end of the toolbar, and
of the context menu 'Close' button was exactly the same as before.

File/Exit from the menu did close it, though.

Any thoughts?

···

On Tue, 20 Mar 2012 11:34:28 -0700, Robin Dunn wrote:

On 3/16/12 2:10 PM, Walter Hurry wrote:

It's early days on Fedora 17 I know (it is only an alpha release at the
moment), but I am seeing problems with Python applications which use
wxPython. They run, and behave largely as expected, but do not close
properly.

When the 'x' at the right hand end of the title bar is clicked nothing
appears to happen. Same applies to clicking 'Close' in the context menu
which is presented on clicking the icon at the left hand end of the
title bar.

Sample application at http://dl.dropbox.com/u/6106778/hello.py . The
app is just an empty "Hello World" frame. It can be moved, resized,
minimised etc. but it won't close.

wxPython 2.8.12, Python 2.7.2.

To help narrow down the problem could you build and test one of the
wxWidgets samples? You may also want to try with wxPython 2.9.3 because
if this is something specific to the newest versions of GTK, for
example, then it will be more likely to have been fixed in the wx trunk
rather than the 2.8 branch.

Please create a ticket at trac.wxwidgets.org about it.

···

On 3/20/12 5:02 PM, Walter Hurry wrote:

On Tue, 20 Mar 2012 11:34:28 -0700, Robin Dunn wrote:

On 3/16/12 2:10 PM, Walter Hurry wrote:

It's early days on Fedora 17 I know (it is only an alpha release at the
moment), but I am seeing problems with Python applications which use
wxPython. They run, and behave largely as expected, but do not close
properly.

When the 'x' at the right hand end of the title bar is clicked nothing
appears to happen. Same applies to clicking 'Close' in the context menu
which is presented on clicking the icon at the left hand end of the
title bar.

Sample application at http://dl.dropbox.com/u/6106778/hello.py . The
app is just an empty "Hello World" frame. It can be moved, resized,
minimised etc. but it won't close.

wxPython 2.8.12, Python 2.7.2.

To help narrow down the problem could you build and test one of the
wxWidgets samples? You may also want to try with wxPython 2.9.3 because
if this is something specific to the newest versions of GTK, for
example, then it will be more likely to have been fixed in the wx trunk
rather than the 2.8 branch.

Robin,

Thanks for the reply. I downloaded and installed wxPython 2.9.3.1 (I also
removed my existing version of wxPython to make absolutely sure).

Then I set my PYTHONPATH and LD_LIBRARY_PATH accordingly.

I didn't completely understand your reference to "wxWidgets samples", but
I assume you were referring to the $WXDIR/samples stuff. I did:

cd $WXDIR/samples/minimal
make -f makefile.unx
./minimal

I got an empty form with the title "Minimal wxWidgets App", and Help/
About showed:

Welcome to wxWidgets 2.9.3!

This is the minimal wxWidgets sample
running under Linux 3.3.0-1.fc17.x86_64 x86_64.

The behaviour of the 'x' button at the right hand end of the toolbar, and
of the context menu 'Close' button was exactly the same as before.

--
Robin Dunn
Software Craftsman

OK, done. Ticket #14125. I infer from your suggestion that the issue is
with wxWidgets rather than the wxPython 'wrapper'. If you check the bug
at <wxTrac has been migrated to GitHub Issues - wxWidgets; you will see that I have
specified wxPython as the 'component'. If that's wrong please change it,
or post a reply here and I'll correct it.

Thanks again.

···

On Wed, 21 Mar 2012 10:03:27 -0700, Robin Dunn wrote:

Please create a ticket at trac.wxwidgets.org about it.