[Tkinter-discuss] (no subject)
Sorin Schwimmer
sxn02 at yahoo.com
Fri Oct 6 23:57:38 CEST 2006
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20061006/9b57444b/attachment.html
More information about the Tkinter-discuss
mailing list