Code Comments
Programming Forum and web based access to our favorite programming groups.Possibly one of the gurus can help me. I want to open a dialog w/out WM decoration (kind of Welcome with input fields ). So I use "wm overrideredirect .welcome 1" If I do this I can not get any keyboard input into my entry widget: wm withdraw . toplevel .welcome wm geometry .welcome 100x50 wm overrideredirect .welcome 1 entry .welcome.smb button .welcome.exit -command exit -text exit pack .welcome.smb .welcome.exit -expand 1 -fill both focus .welcome.smb What can I do?
Post Follow-up to this message"Tillmann Basien" <tab@basien n0spam.de> wrote in message news:2pejb6Fjuh0oU1@uni-berlin.de... : Possibly one of the gurus can help me. : : I want to open a dialog w/out WM decoration (kind of Welcome with input : fields ). So I use "wm overrideredirect .welcome 1" : : If I do this I can not get any keyboard input into my entry widget: : : wm withdraw . : toplevel .welcome : wm geometry .welcome 100x50 : wm overrideredirect .welcome 1 : entry .welcome.smb : button .welcome.exit -command exit -text exit : pack .welcome.smb .welcome.exit -expand 1 -fill both : focus .welcome.smb Does "focus -force .welcome.smb" instead of "focus .welcome.smb" do the right thing? Jeff
Post Follow-up to this messageno it does not, Jeff. But with -force I get the cursor inside of the entry widget. Keyboard inputs are still outside. TAB "Jeff Godfrey" <jeff_godfrey@pobox.com> schrieb im Newsbeitrag news:10j46q58kbenu7d@corp.supernews.com... > "Tillmann Basien" <tab@basien n0spam.de> wrote in message > news:2pejb6Fjuh0oU1@uni-berlin.de... > : Possibly one of the gurus can help me. > : > : I want to open a dialog w/out WM decoration (kind of Welcome with input > : fields ). So I use "wm overrideredirect .welcome 1" > : > : If I do this I can not get any keyboard input into my entry widget: > : > : wm withdraw . > : toplevel .welcome > : wm geometry .welcome 100x50 > : wm overrideredirect .welcome 1 > : entry .welcome.smb > : button .welcome.exit -command exit -text exit > : pack .welcome.smb .welcome.exit -expand 1 -fill both > : focus .welcome.smb > > > Does "focus -force .welcome.smb" instead of "focus .welcome.smb" do the > right thing? > > Jeff > >
Post Follow-up to this message"Tillmann Basien" <tab@basien n0spam.de> wrote in message news:2pelebFk1v0tU1@uni-berlin.de... : no it does not, Jeff. : But with -force I get the cursor inside of the entry widget. Keyboard inputs : are still outside. : TAB : : "Jeff Godfrey" <jeff_godfrey@pobox.com> schrieb im Newsbeitrag : news:10j46q58kbenu7d@corp.supernews.com... : > "Tillmann Basien" <tab@basien n0spam.de> wrote in message : > news:2pejb6Fjuh0oU1@uni-berlin.de... : > : Possibly one of the gurus can help me. : > : : > : I want to open a dialog w/out WM decoration (kind of Welcome with input : > : fields ). So I use "wm overrideredirect .welcome 1" : > : : > : If I do this I can not get any keyboard input into my entry widget: : > : : > : wm withdraw . : > : toplevel .welcome : > : wm geometry .welcome 100x50 : > : wm overrideredirect .welcome 1 : > : entry .welcome.smb : > : button .welcome.exit -command exit -text exit : > : pack .welcome.smb .welcome.exit -expand 1 -fill both : > : focus .welcome.smb : > : > : > Does "focus -force .welcome.smb" instead of "focus .welcome.smb" do the : > right thing? : > : > Jeff Hmmmm... I guess I don't know then. Under Windows, your original code worked except that I had to "click" in the entry widget before I could type. With the addition of the "-force" option, the code worked as (I assume was) expected... Sorry, but I guess you'll have to wait on some other input from the group. Jeff
Post Follow-up to this message"Tillmann Basien" <tab@basien n0spam.de> writes: > no it does not, Jeff. > But with -force I get the cursor inside of the entry widget. Keyboard inpu ts > are still outside. I tried it on a couple of Linux computers with Kde and Icewm, and [focus -force] does not work. However [grab -global] did. I would not expect plain [focus] to work. Moreover, I think it is incorrect behavior if clicking on an "overridedirect" window gives it focus, because focus must be granted by the window manager. Donald Arseneau asnd@triumf.ca
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.