Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#123 Open Imported Module: focus problem

closed-fixed
nobody
None
5
2009-08-09
2008-02-28
Jon White
No

On Linux, when I bring up the Open Imported Module dialog , no control has the focus. This means I can't use the arrow keys to select a module. I have to click the dialog to get it to work.
Works OK on Windows.

Discussion

  • Logged In: YES
    user_id=772872
    Originator: NO

    Thank you for reporting. This Linux stuff. I didn't test it on Linux. I fear, that open imported module is maybe not the only dialog, which has not initially the focus. I think, that is a difference in gtk and windows. I have already saw it a few months ago on a linux pc, where I ran DrPython. Hm, does a d.SetFocus() on line about 2296 (after creating that dialog) in drpython.py help?

    Could you report, what helped, so I can add that codeline to svn?

     
  • Jon White
    Jon White
    2008-02-28

    Logged In: YES
    user_id=2018792
    Originator: YES

    Adding self.SetFocus() to the end of of drSingleChoiceDialog.__init__ fixes the problem.
    Haven't tested this on Windows yet though.

     
  • Logged In: YES
    user_id=772872
    Originator: NO

    thanks, it is checked in.

     
    • status: open --> closed
     
  • Jon White
    Jon White
    2008-02-28

    Logged In: YES
    user_id=2018792
    Originator: YES

    The "Source Browser Go To" has the same problem.

    Other dialogs that have this problem:
    Insert Separator
    Everything on Options menu

     
    • status: closed --> open
     
  • Logged In: YES
    user_id=772872
    Originator: NO

    I reopened that bug. That is annoying on gtk. We would add that command (which should be anyway have the focus, I think) to several dialogs. Maybe asking in the wxpython user list. Could that be a bug? I cannot imagine, that that behaviour is intended.

     
    • status: open --> closed-fixed
     
  • fixed in 3.11.1