-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetPopupMenu override for wx.adv.TaskbarIcon not working #2067
Comments
This issue has been mentioned on Discuss wxPython. There might be relevant details there: https://discuss.wxpython.org/t/wx-adv-taskbaricon-getpopupmenu-override-not-working/35742/3 |
Hi Robin,
Thanks for the response – I have had no replies on there either. I am pretty sure it is an issue but I could be interpreting the code wrong.
Cheers
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
From: Robin ***@***.***>
Sent: 01 January 2022 20:11
To: ***@***.***>
Cc: ***@***.***>; ***@***.***>
Subject: Re: [wxWidgets/Phoenix] GetPopupMenu override for wx.adv.TaskbarIcon not working (Issue #2067)
This issue has been mentioned on Discuss wxPython. There might be relevant details there:
https://discuss.wxpython.org/t/wx-adv-taskbaricon-getpopupmenu-override-not-working/35742/3
—
Reply to this email directly, view it on GitHub<#2067 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOBPU4JWBVHAZZGG2F2SMBTUT5NXBANCNFSM5LCOVC6Q>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
That's not actually Robin, but Robin's bot that automatically posts here when someone mentions a GitHub issue on the Discuss site. Anyway, I can confirm the problem and submitted a fix. Basically, CreatePopupMenu was recently added in wxWidgets and it needed to be unhidden in wxPython since it is protected (those methods are hidden by default it seems). |
Operating system: Windows 11
wxPython version & source: wxPython 4.1.1, pypip
Python version & source: Python 3.9, downloaded from website
Description of the problem: The documentation for wxWidgets states that if I override GetPopupMenu then the right-click menu on the system tray icon will not get re-created after each use, this does not seem to happen though, when I override GetPopupMenu I do not see a menu popup when right-clicking the system tray icon. The documentation states use GetPopupMenu if you do not want the menu to get recreated (it is called first) and then if that is not present it will try CreatePopupMenu. The CreatePopupMenu function does work however but the menu gets recreated each time I right-click the system tray icon.
Code Example (click to expand)
The text was updated successfully, but these errors were encountered: