[wxPython] wxTextEntryDialog not getting focus

Hi,

When I try to use wxTextEntryDialog it doesn't get the focus. The focus
goes back to the main window and the dialog gets hidden underneath. The
dialog is still modal though and I have to OK or Cancel it before anything
can be done on the main window. When I use wxMessageDialog or
wxSingleChoiceDialog everything works as expected. This is the bit of code

def textEntry( msg, title):
    msgBox=wxTextEntryDialog(NULL, msg, title)
    if msgBox.ShowModal() == wxID_CANCEL:
        msgBox.Destroy()
        return ''

    res= msgBox.GetValue()
    msgBox.Destroy()
    return res

I dont have a parent window. I have used NULL and None with the same
results. I didn't think that dialogs needed a parent.

Any ideas?

W95 Python 2.0 wxPython 2.2.2

Please send a reply directly back to me.

Thanks,

Gordon Williams

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

This sort of thing happens to me quite often when debugging (normally goes
away when I fix other portions of the code), and not just to
TextEntryDialogs... a very strange bug indeed... I use Windows--I ASSUME
you're using Linux, because dialogs ALWAYS appear in front of normal windows
for me... but they may, in this case, not get the focus...

I'd really appreciate hearing about this, then...

Cheerio, Chris

···

-------------------------------------------------------------------------
Chris Fama <mailto:Chris.Fama@uq.net.au> Phone:(07) 3870 5639
Brisbane, Australia Mobile:(0400) 833 700
-------------------------------------------------------------------------
Trust in the Lord with all your heart, / And lean not on your own
understanding; / In all your ways acknowledge Him, / And He shall
direct your paths. -- Proverbs 3:5-6.

-----Original Message-----
From: wxpython-users-admin@lists.sourceforge.net
[mailto:wxpython-users-admin@lists.sourceforge.net]On Behalf Of Gordon
Williams
Sent: Thursday, 11 January 2001 7:40 AM
To: wxPython List
Subject: [wxPython] wxTextEntryDialog not getting focus

Hi,

When I try to use wxTextEntryDialog it doesn't get the focus. The focus
goes back to the main window and the dialog gets hidden underneath. The
dialog is still modal though and I have to OK or Cancel it before anything
can be done on the main window. When I use wxMessageDialog or
wxSingleChoiceDialog everything works as expected. This is the
bit of code

def textEntry( msg, title):
    msgBox=wxTextEntryDialog(NULL, msg, title)
    if msgBox.ShowModal() == wxID_CANCEL:
        msgBox.Destroy()
        return ''

    res= msgBox.GetValue()
    msgBox.Destroy()
    return res

I dont have a parent window. I have used NULL and None with the same
results. I didn't think that dialogs needed a parent.

Any ideas?

W95 Python 2.0 wxPython 2.2.2

Please send a reply directly back to me.

Thanks,

Gordon Williams

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Hi Chris,

I'm using windows 95 with Python 2.0 and wxPython 2.2.2.
It only happens with the TextEntryDialogs, the others work OK. I am
assuming this is a bug. But I am surprised that no one has made reference
to it before.

Please send me a copy of the message that you post as the archives are not
working very well.

Thanks,

Gordon

···

----- Original Message -----
From: "Chris Fama" <Chris.Fama@uq.net.au>
To: "Wxpython-Users" <wxpython-users@lists.sourceforge.net>;
<g_will@cyberus.ca>
Sent: Thursday, January 11, 2001 4:22 AM
Subject: RE: [wxPython] wxTextEntryDialog not getting focus

This sort of thing happens to me quite often when debugging (normally goes
away when I fix other portions of the code), and not just to
TextEntryDialogs... a very strange bug indeed... I use Windows--I ASSUME
you're using Linux, because dialogs ALWAYS appear in front of normal

windows

for me... but they may, in this case, not get the focus...

I'd really appreciate hearing about this, then...

Cheerio, Chris

-------------------------------------------------------------------------
Chris Fama <mailto:Chris.Fama@uq.net.au> Phone:(07) 3870 5639
Brisbane, Australia Mobile:(0400) 833 700
-------------------------------------------------------------------------
Trust in the Lord with all your heart, / And lean not on your own
understanding; / In all your ways acknowledge Him, / And He shall
direct your paths. -- Proverbs 3:5-6.

> -----Original Message-----
> From: wxpython-users-admin@lists.sourceforge.net
> [mailto:wxpython-users-admin@lists.sourceforge.net]On Behalf Of Gordon
> Williams
> Sent: Thursday, 11 January 2001 7:40 AM
> To: wxPython List
> Subject: [wxPython] wxTextEntryDialog not getting focus
>
>
> Hi,
>
> When I try to use wxTextEntryDialog it doesn't get the focus. The focus
> goes back to the main window and the dialog gets hidden underneath. The
> dialog is still modal though and I have to OK or Cancel it before

anything

> can be done on the main window. When I use wxMessageDialog or
> wxSingleChoiceDialog everything works as expected. This is the
> bit of code
>
> def textEntry( msg, title):
> msgBox=wxTextEntryDialog(NULL, msg, title)
> if msgBox.ShowModal() == wxID_CANCEL:
> msgBox.Destroy()
> return ''
>
> res= msgBox.GetValue()
> msgBox.Destroy()
> return res
>
>
> I dont have a parent window. I have used NULL and None with the same
> results. I didn't think that dialogs needed a parent.
>
> Any ideas?
>
> W95 Python 2.0 wxPython 2.2.2
>
> Please send a reply directly back to me.
>
> Thanks,
>
> Gordon Williams
>
>
> _______________________________________________
> wxPython-users mailing list
> wxPython-users@lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/wxpython-users
>

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users