wx.TaskBarIcon crash in Phoenix

I've written an app using Python 2.7.4 and wxPython 2.9.4.0 on Ubuntu
12.04 and implemented the taskbar icon for the app. It works
perfectly.

But now on the same OS using Python 3.3.1 and the latest Phoenix,
built from source, the app crashes when I right-click on the taskbar
icon. It should pop-up the menu, but it crashes instead.

Anyone has any hints on this one? Were there significant changes made
to wx.TaskBarIcon?

···

--
Boštjan Mejak

Oh, and I realize about the class being moved to wx.adv and all. I've
adapted my code to all this changes.

The taskbar icon is shown normally, but then the right-click event
crashes everything. So there's some event-handling bug present I
presume.

···

--
Boštjan Mejak

I think you must have forgotten one other post;-) .

Anyhow, a runnable sample app (MakingSampleApps - wxPyWiki) would make this much easier to check.

For me on Windows 7, Py 2.7 and 2.9.5.81-r73805 it works using code which is just about straight out of the 2.9 demo with updates for Phoenix, see attached.

Werner

mixWitAppWithTaskbar.py (3.74 KB)

···

On 13/04/2013 11:41, Boštjan Mejak wrote:

I've written an app using Python 2.7.4 and wxPython 2.9.4.0 on Ubuntu
12.04 and implemented the taskbar icon for the app. It works
perfectly.

But now on the same OS using Python 3.3.1 and the latest Phoenix,
built from source, the app crashes when I right-click on the taskbar
icon. It should pop-up the menu, but it crashes instead.

Anyone has any hints on this one? Were there significant changes made
to wx.TaskBarIcon?

Yes, on Windows it works, but it doesn’t work on Linux. I don’t know why.

···

On Sat, Apr 13, 2013 at 12:53 PM, werner wbruhin@free.fr wrote:

On 13/04/2013 11:41, Boštjan Mejak wrote:

I’ve written an app using Python 2.7.4 and wxPython 2.9.4.0 on Ubuntu

12.04 and implemented the taskbar icon for the app. It works

perfectly.

But now on the same OS using Python 3.3.1 and the latest Phoenix,

built from source, the app crashes when I right-click on the taskbar

icon. It should pop-up the menu, but it crashes instead.

Anyone has any hints on this one? Were there significant changes made

to wx.TaskBarIcon?

I think you must have forgotten one other post;-) .

Anyhow, a runnable sample app (http://wiki.wxpython.org/MakingSampleApps) would make this much easier to check.

For me on Windows 7, Py 2.7 and 2.9.5.81-r73805 it works using code which is just about straight out of the 2.9 demo with updates for Phoenix, see attached.

Werner

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Boštjan Mejak wrote:

I've written an app using Python 2.7.4 and wxPython 2.9.4.0 on Ubuntu
12.04 and implemented the taskbar icon for the app. It works
perfectly.

But now on the same OS using Python 3.3.1 and the latest Phoenix,
built from source, the app crashes when I right-click on the taskbar
icon. It should pop-up the menu, but it crashes instead.

Anyone has any hints on this one? Were there significant changes made
to wx.TaskBarIcon?

I'm traveling this week and don't have easy access to my linux VMs so I won't be able to look in to this right away.

···

--
Robin Dunn
Software Craftsman

Robin, it’s okay. I had a bug in my code. I had a wrongly named argument for the Append() method of wx.Menu(), so that’s why the wx.adv.TaskBarIcon() didn’t work for me. Now that my code is fixed, it works perfectly. No testing needed. :wink:

···

On Tue, Apr 16, 2013 at 6:38 AM, Robin Dunn robin@alldunn.com wrote:

Boštjan Mejak wrote:

I’ve written an app using Python 2.7.4 and wxPython 2.9.4.0 on Ubuntu

12.04 and implemented the taskbar icon for the app. It works

perfectly.

But now on the same OS using Python 3.3.1 and the latest Phoenix,

built from source, the app crashes when I right-click on the taskbar

icon. It should pop-up the menu, but it crashes instead.

Anyone has any hints on this one? Were there significant changes made

to wx.TaskBarIcon?

I’m traveling this week and don’t have easy access to my linux VMs so I won’t be able to look in to this right away.

Robin Dunn

Software Craftsman

http://wxPython.org

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.