![]() Serendipity!Įid(row=index // 4, column=index % 4)Įntry.bind(key, lambda event, i=index: self.next_widget(event, i))Įntry.focus_set() # These three lines may be what you were looking for. The Shift+Tab comment made me realize you can use Shift+Arrow to navigate and still use left/right arrow keys inside the entry. This is the code I meant to post, but with an edit. That code in the post was a mashup of both versions. At first I wrote the code one way, then thought of a better way. gridbbox (), which is something quite different. Tkinter, cursor en entry al abrir la aplicacion Formulada hace 2 años y 11 meses Modificada hace 2 años y 11 meses Vista 1k veces 1 soy nuevo en python. bbox () on an Entry, you're actually executing. ![]() Tab goes to the next entry, shift+tab the previous. 1 The underlying Tk Entry widget has a bbox subcommand to get the coordinates of a specified item, as do Text and a few other widgets, but for some reason Tkinter fails to implement it on this particular widget. If multiple items are specified by the given value, then the tags of the first (lowest) item in the display list are returned. Self.bind_class("Entry", "", self.next_widget) I saw we can use bind_class to select all the Entry widgets, however, I don't know how to work around focus() to move Up/Down/Left/Right in entries.įid(row=0, column=0, sticky="nsew") I am looking to do this using the arrow keys. The exact graphic may vary according to your operating system. currently, I need to move the cursor to each entry and click it to select it. Python Tkinter supports quite a number of different mouse cursors available.
0 Comments
Leave a Reply. |