Don't know if this will make a difference, but try two
things.
1st, turn off the overrideredirect and see if that changes
anything. I've seen strange things with that before which caused some
widgets to not behave properly at random times.
2nd, you could explicitly set the Tx master=root. I'm
not sure that matters, but just a stab.
B
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sorin Schwimmer
Sent: Friday, October 06, 2006 2:58 PM
To: tkinter-discuss@python.org
Subject: [Tkinter-discuss] (no subject)
Hi All,
I am trying to use a textbox in an undecorated window. It works under Windows, it fails under Linux. Here is a test code:
<code>
from Tkinter import *
root=Tk()
root['bg']='' # transparent background
root.overrideredirect(1) # get rid of border
root.geometry("+80+120") # place on screen
root.focus_set() # take focus
bt=Button(text="End",command=root.quit)
bt.grid(row=0, stick=E) # a button to allow window's closure
tx=Text(bg='white',height=3)
tx.grid() # a text widget
tx.focus() # give focus to text
root.mainloop()
</code>
Under Linux, only mouse events are acknowledged, while the keyboard is ignored. How should I proceed?
Thanks for you advice,
Sorin
I am trying to use a textbox in an undecorated window. It works under Windows, it fails under Linux. Here is a test code:
<code>
from Tkinter import *
root=Tk()
root['bg']='' # transparent background
root.overrideredirect(1) # get rid of border
root.geometry("+80+120") # place on screen
root.focus_set() # take focus
bt=Button(text="End",command=root.quit)
bt.grid(row=0, stick=E) # a button to allow window's closure
tx=Text(bg='white',height=3)
tx.grid() # a text widget
tx.focus() # give focus to text
root.mainloop()
</code>
Under Linux, only mouse events are acknowledged, while the keyboard is ignored. How should I proceed?
Thanks for you advice,
Sorin
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss