Python Forum
[Tkinter] Entry problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Entry problem
#1
Hi,

I have an app with a simple Tkinter GUI. It has an Entry box, where the user can type something or not.
entryText1 = Entry(root, width = 65, font=myFontBold,bg='yellow')
entryText1.grid(row=1,column=0,columnspan=2,padx=20,pady=10)
entryText1.insert(0,'Remark:')
entryText1.config(state=NORMAL)
The whole app works fine, but i cannot get focus on the entry box, and therefore it is not possible to enter text.

I did some research and suggested wordkarounds are:
1) click outside the app window, then in the entry box-> that works, but won't win any prizes.
2) use root.overrideredirect(True): does not work, and takes away all window controls.
3) Setting focus on the Entry is no good either

Any ideas on what I could try next?
thx,
Paul

Edit: i found somewhere that a fileopendialog can cause that phenomenon.
The trick is to insert root.update_idletasks() just before. It works!
Reply


Messages In This Thread
Entry problem - by DPaul - Oct-29-2020, 09:51 AM
RE: Entry problem - by Larz60+ - Oct-29-2020, 10:25 AM
RE: Entry problem - by joe_momma - Oct-29-2020, 02:45 PM
RE: Entry problem - by deanhystad - Oct-29-2020, 02:58 PM
RE: Entry problem - by DPaul - Oct-29-2020, 03:25 PM
RE: Entry problem - by deanhystad - Oct-29-2020, 05:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with setting variable within a Entry validatecommand kenwatts275 1 1,899 Mar-31-2020, 01:53 AM
Last Post: deanhystad
  Grid data entry problem kenwatts275 3 2,287 Mar-22-2020, 03:13 PM
Last Post: kenwatts275
  Transfer Toplevel window entry to root window entry with TKinter HBH 0 4,477 Jan-23-2020, 09:00 PM
Last Post: HBH
  [Tkinter] how to get the entry information using Entry.get() ? SamyPyth 2 3,509 Mar-18-2019, 05:36 PM
Last Post: woooee
  [Tkinter] Problem reading entry box in thread LeeMadeux 2 3,344 Jan-17-2018, 03:15 PM
Last Post: LeeMadeux

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020