While trying to figure out the issue with the grid Bob K. had I noticed that the hot keys to invoke the inspection tool don't work on Ubuntu 10.10 - the code attached to the previous message redefines the hotkey to "i" and this works on Win 7 (VM under Ubuntu 10.10) but doesn't work in Ubuntu. The default "ctrl-alt-I" doesn't work in Ubuntu either.
By default wx applications on wxGTK do not start out with any widget having the focus. If you click in the window to make sure it has the focus (or do an explicit SetFocus in the startup code) then the WIT's hot-key will work. It installs itself as a global handler on the EVT_KEY_DOWN event, so something has to have the focus in order for that event to be seen.
···
On 7/10/11 5:26 AM, werner wrote:
While trying to figure out the issue with the grid Bob K. had I noticed
that the hot keys to invoke the inspection tool don't work on Ubuntu
10.10 - the code attached to the previous message redefines the hotkey
to "i" and this works on Win 7 (VM under Ubuntu 10.10) but doesn't work
in Ubuntu. The default "ctrl-alt-I" doesn't work in Ubuntu either.
I do:
- Start the test script
- click anywhere in the frame started by the test script
- hit the hot-key and nothing happens
Will do some more tests on this in a little while.
Werner
···
On 07/11/2011 05:46 AM, Robin Dunn wrote:
On 7/10/11 5:26 AM, werner wrote:
While trying to figure out the issue with the grid Bob K. had I noticed
that the hot keys to invoke the inspection tool don't work on Ubuntu
10.10 - the code attached to the previous message redefines the hotkey
to "i" and this works on Win 7 (VM under Ubuntu 10.10) but doesn't work
in Ubuntu. The default "ctrl-alt-I" doesn't work in Ubuntu either.
By default wx applications on wxGTK do not start out with any widget having the focus. If you click in the window to make sure it has the focus (or do an explicit SetFocus in the startup code) then the WIT's hot-key will work. It installs itself as a global handler on the EVT_KEY_DOWN event, so something has to have the focus in order for that event to be seen.
I tried different things using Bob's grid problem code.
- still can't make the standard hot-key work (when I used the mixin and self.Init() in the OnInit of the custom wx.App).
- works fine if I add a menu option for WIT, but only on the main frame
Only have problems on Ubuntu all works just fine under Win7.
Robin, do you any other tip on what I should try out/look at?
Werner
···
On 07/11/2011 05:46 AM, Robin Dunn wrote:
On 7/10/11 5:26 AM, werner wrote:
While trying to figure out the issue with the grid Bob K. had I noticed
that the hot keys to invoke the inspection tool don't work on Ubuntu
10.10 - the code attached to the previous message redefines the hotkey
to "i" and this works on Win 7 (VM under Ubuntu 10.10) but doesn't work
in Ubuntu. The default "ctrl-alt-I" doesn't work in Ubuntu either.
By default wx applications on wxGTK do not start out with any widget having the focus. If you click in the window to make sure it has the focus (or do an explicit SetFocus in the startup code) then the WIT's hot-key will work. It installs itself as a global handler on the EVT_KEY_DOWN event, so something has to have the focus in order for that event to be seen.
Another question, in RakPhoto a dialog is opened with ShowModal if I then open the WIT using the ctrl-alt-i hot-key I can't manipulate anything within the WIT. Is this expected due to ShowModal? Is there any work around this without having to change the ShowModal call?
Werner
···
On 07/11/2011 11:17 AM, werner wrote:
On 07/11/2011 05:46 AM, Robin Dunn wrote:
On 7/10/11 5:26 AM, werner wrote:
While trying to figure out the issue with the grid Bob K. had I noticed
that the hot keys to invoke the inspection tool don't work on Ubuntu
10.10 - the code attached to the previous message redefines the hotkey
to "i" and this works on Win 7 (VM under Ubuntu 10.10) but doesn't work
in Ubuntu. The default "ctrl-alt-I" doesn't work in Ubuntu either.
By default wx applications on wxGTK do not start out with any widget having the focus. If you click in the window to make sure it has the focus (or do an explicit SetFocus in the startup code) then the WIT's hot-key will work. It installs itself as a global handler on the EVT_KEY_DOWN event, so something has to have the focus in order for that event to be seen.
I tried different things using Bob's grid problem code.
- still can't make the standard hot-key work (when I used the mixin and self.Init() in the OnInit of the custom wx.App).
- works fine if I add a menu option for WIT, but only on the main frame
Only have problems on Ubuntu all works just fine under Win7.
Robin, do you any other tip on what I should try out/look at?
Another question, in RakPhoto a dialog is opened with ShowModal if I then open the WIT using the ctrl-alt-i hot-key I can't manipulate anything within the WIT. Is this expected due to ShowModal? Is there any work around this without having to change the ShowModal call?
On Windows it works fine, i.e. start the app, open the dialog then press ctrl-alt-i and WIT opens and I can e.g. walk the tree etc, however doing the same steps on Ubuntu 10.10 the WIT opens but I can't do anything in it.
It used to work on wxGTK just like the others. IOW, if the WIT is opened after the dialog is shown then it is not excluded from mouse events nor getting the focus... Perhaps something has changed in wxGTK that I didn't notice, I'll try to figure it out when I get some time.
Meanwhile one way to work around this is to make the content of the dialog be usable from a frame too. For example put all the content of the dialog on a panel, and then create both a dialog class and a frame class that use that panel class. When you want to debug the code in the WIT you can create the frame instead of the dialog.
···
On 7/11/11 6:37 AM, werner wrote:
Another question, in RakPhoto a dialog is opened with ShowModal if I
then open the WIT using the ctrl-alt-i hot-key I can't manipulate
anything within the WIT. Is this expected due to ShowModal? Is there
any work around this without having to change the ShowModal call?
On Windows it works fine, i.e. start the app, open the dialog then press
ctrl-alt-i and WIT opens and I can e.g. walk the tree etc, however doing
the same steps on Ubuntu 10.10 the WIT opens but I can't do anything in it.