-
Notifications
You must be signed in to change notification settings - Fork 675
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
misseditor: Better mission command dropdown #1233
Conversation
Thank you so much! |
dfd69fe
to
a19cb7f
Compare
@rmackay9, would you be able to give this a test-drive? Mostly just to see if the GUI changes work for you. I'll get @tridge or @peterbarker to do the actual code review. |
Hi @stephendade, Yes, I'll give this a test. I'm not very confident about building MAVproxy from source but I'll try. |
Hi @stephendade, I gave this a test and it is certainly better than master because I can actually get to the commands I'd like to add. It is a bit weird though, sometimes when I click on an existing command and try to change it, the drop-down appears behind the wp editor. It also appeared to me that at least once the list of commands was not sorted alphabetically although I'm now having troubles reproducing this. |
I've managed to replicate this. It's a x11 vs Wayland issue again. @MichelleRos had similar issues and fixed it via putting I've confirmed if you do the same, it should fix the window focus issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's fixed it for me as well. I had to add "export GDK_BACKEND="x11"" to my ~/.bashrc file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stephendade I can reliably produce this assertion:
wx._core.wxAssertionError: C++ assertion "firstHandler != this" failed at ../src/common/wincmn.cpp(1461) in PopEventHandler(): cannot pop the wxWindow itself
The above exception was the direct cause of the following exception:
SystemError: _PyEval_EvalFrameDefault returned a result with an exception set
... by selecting a type which ArduPilot doesn't undertstand, writing waypoints then reading waypoints.
a19cb7f
to
fbda3f7
Compare
Now fixed. It was a reference counting issue (see wxWidgets/Phoenix#627) |
Merged, thanks! |
Fix for #1162.
Modifies the mission editor's "Command" dropdown to use a custom control (ListCtrl), which has a better layout and visible scrollbars.
Tested on WSL and Ubuntu 22:
@rmackay9 - I'd be interested if this works better for you.