[ wxwindows-Bugs-1906891 ] Dialog on gtk don't get initially focus
SourceForge.net
noreply at sourceforge.net
Mon Mar 10 01:41:19 PDT 2008
Bugs item #1906891, was opened at 2008-03-04 11:35
Message generated for change (Comment added) made by vaclavslavik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1906891&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Franz Steinhaeusler (francescoa)
Assigned to: Nobody/Anonymous (nobody)
Summary: Dialog on gtk don't get initially focus
Initial Comment:
Not really sure, if this is a bug or a feature. For me, it is the first thing, and find it annoying.
On MSW, it does. I have several Dialogs, where I would have to insert (on wxpython):
class dlg(wx.Dialog):
def __init__(...)
...
if wx.Platform == '__WXGTK__':
self.SetFocus()
Is that intended? I find it very annoying.
----------------------------------------------------------------------
>Comment By: Vaclav Slavik (vaclavslavik)
Date: 2008-03-10 09:41
Message:
Logged In: YES
user_id=80834
Originator: NO
This was already fixed on the trunk (wxTopLevelWindow now uses
WX_DECLARE_CONTROL_CONTAINER() and so it moves focus to first child). I
think the change wouldn't be binary compatible as 2.8 backport.
I recommend you change your code to set the focus (before calling Show or
ShowModal) to the control that the user is most likely to want to interact
with first.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1906891&group_id=9863
More information about the wx-dev
mailing list