Open LumaRay opened 4 years ago
What OS? I see the help string on GTK so it may be OS-specific.
Windows 10 x64
This doesn't seem like it would be a problem in wxPython itself. Can you compile wxWidgets master branch and see if you observe the problem in the propgrid sample? If so, then I would suggest opening a trac ticket.
@swt2c, I'm not very familiar with installations by compiling, so I just tried to follow instructions from this page: https://docs.wxwidgets.org/trunk/plat_msw_install.html
In particular I have compiled wxWidgets using Visual Studio 2019 compiler:
> nmake /f makefile.vc BUILD=release SHARED=1 TARGET_CPU=X64
But what should I do next? How to tell Python3 to use this compiled version?
There should be a propgrid sample in the samples/propgrid directory. You may have to compile it separately. Once you do that, you can run it and see if you observe the same behavior with the missing help string.
I have found and compiled that example, but it is missing dlls, where do I find them?
They should be somewhere down the build tree - you compiled them earlier. (Sorry, I'm not very familiar with how Windows builds work.)
Ok, I have searched for *.dll and fould them here: wxWidgets\lib\vc_x64_dll\
I have run the sample and it doesn't show the help string for any property selected: https://www.screencast.com/t/qJ0sGnRdoQ
In that case, you should file a wxWidgets bug at https://trac.wxwidgets.org/.
Ok, posted that: https://trac.wxwidgets.org/ticket/18825#ticket
I can see devs replied already: "This issue is not related to wxPropertyGrid itself. It is about measuring empty text extent" Actually I don't understand what that means and what to do to fix that, and you? And also how do I manage that ticket? Should I close it or say something else there?
He's saying it's a regression in wxWidgets, but not just in PropertyGrid itself. You don't need to respond to it yet. Someone will hopefully respond and fix it.
Ok, thank you for bearing with me.
I would leave this ticket open here because once they fix the problem in wxWidgets, we'll have to update wxPython to pick up the fix.
Ah, allright, reopening...
I think this should supposedly be fixed in the latest snapshots (as wxWidgets was updated). Can you give them a try?
Do you mean I can checkout and compile wxWidgets? Or how do I use the snapshots?
For Windows, you should be able to use the precompiled wheels and not have to compile anything. See the instructions here:
https://wxpython.org/Phoenix/snapshot-builds/README.txt. Make sure you install the one with 75f1081f
in the name as that's the latest one.
Ok, and for Debian 10.4 x64?
Do you see this particular issue on Debian? I don't see it on Linux so I assumed it was probably Windows-only.
Well, on Windows 10 x64 I have upgraded wxPython to your latest snapshot: pip3 install --upgrade https://wxpython.org/Phoenix/snapshot-builds/wxPython-4.1.1a1.dev4892+33fa9afd-cp37-cp37m-win_amd64.whl After that the help strings in PropertyGrid did start showing. However now enum dropdowns are not opening anymore. You can take and try the sample code I posted above.
Regarding Debian, right, I have forgotten that it is just Windows issue. Checked in Debian - help strings are showing and dwopdowns work.
Well, on Windows 10 x64 I have upgraded wxPython to your latest snapshot: pip3 install --upgrade https://wxpython.org/Phoenix/snapshot-builds/wxPython-4.1.1a1.dev4892+33fa9afd-cp37-cp37m-win_amd64.whl After that the help strings in PropertyGrid did start showing. However now enum dropdowns are not opening anymore. You can take and try the sample code I posted above.
Sigh, one thing fixed and another thing breaks. The wxWidgets trunk has been rather busy lately as they are preparing for a release. It should hopefully be fixed soon.
I can change dropdown values with arrow keys, but the problem is, the set events are not firing.
Actually set events are not firing even in 4.1.1a1.dev4867 version. I use it like this:
pr.OnSetValue = self.onPropertyInfraredDisplayPaletteChanged
This is a problem, because I need to perform actions based on that event :(
I think it's been fixed in wxWidgets. Robin just needs to update the ref in wxPython.
I have just installed the latest snapshot:
pip3 install --upgrade https://wxpython.org/Phoenix/snapshot-builds/wxPython-4.1.1a1.dev4919+57702fa7-cp37-cp37m-win_amd64.whl
Still PG dropdowns are not expanding...
Hello. I have previously opened this issue: https://github.com/wxWidgets/Phoenix/issues/1714 You have suggested that I upgrade wxPython to the newer dev version 4.1.1a1. So did I, and that problem was solved. But now I have another problem: help strings in PropertyGrid are not showing in this dev alpha version. They do though after I downgrade the version to 4.1.0 using pip3 install --upgrade wxpython=4.1.0