-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Trouble with Event Callbacks in Wx TaskPane #106
Comments
Does your TreePane class work if you use it in a standalone wx gui, independently of xloil? To answer the code comment, to write to the worksheet (or interact with Excel in general), you need to invoke your command from the main thread using excel_callback. Just pass a zero-arg lambda which does the worksheet writing. |
Yes, the |
For reasons I don't quite understand Wx resists my attempt to display it as a subwindow in Excel. I'm working on a workaround...but it's resisting. Will let you know when I have something |
This is fixed in xlOil v0.19 (which is currently on pip) |
Thank you for the update, but I checked again, and the issue remains unchanged. Additionally, each time the TaskPane is loaded, I am unable to close Excel properly.
|
I've tried your code on Python 3.12 and it seems to be working bar a couple of things. Your log line in OnChanged should read |
I learned from the documentation examples how to modify the TaskPane components from the Ribbon. However, I am now trying to build a tree within the TaskPane, but clicking on the UI elements does not seem to properly trigger the event functions. Below is the sample code, and I'm not sure where the issue lies. Thank you.
The text was updated successfully, but these errors were encountered: