Automatic selection of the tkinter window when I start the program

0

I'm creating a mini editor in Python 3.4, and I'd like it when the program first appears on the screen, tkinter.Text is selected to write. I tried to use text.focus_force() , which does not work, because in reality it is the IDLE that tkinter.Text has the cursor, but I can only write in IDLE (of course, if not selected first the tkinter.Text widget).

    
asked by anonymous 11.12.2014 / 16:08

1 answer

1

I have not yet figured out why writing in IDLE takes precedence over writing directly to tkinter.Text (even though I have the 2 cursor) in this situation ( if someone else does the opposite, please indicate with a comment that so I can figure out the solution ), but I discovered that once the application has done an build , this problem no longer exists, and the cursor is ready in% as you can see from the following image, where tkinter.Text was already focused for me to write:

    
12.01.2015 / 02:16