Menu

#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

  • Franz Steinhaeusler

    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.

     
  • Franz Steinhaeusler

    Logged In: YES
    user_id=772872
    Originator: NO

    thanks, it is checked in.

     
  • Franz Steinhaeusler

    • 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

     
  • Franz Steinhaeusler

    • status: closed --> open
     
  • Franz Steinhaeusler

    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.

     
  • Franz Steinhaeusler

    • status: open --> closed-fixed
     
  • Franz Steinhaeusler

    fixed in 3.11.1

     

Log in to post a comment.