Python Forum
The coordinates of the Entry widget (canvas) when moving
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The coordinates of the Entry widget (canvas) when moving
#9
Now objects are moving correctly.
I did like this:
y1 = canvas2.bbox(canvas_text[0])[1]#y coordinate after moving the text object

x1 = v_entry[0].winfo_x() #x coordinate

v_entry[0].place_forget()

v_entry[0].place(x = x1, y = y1) #moving Entry vertically

Your code checked and it works well too!
Reply


Messages In This Thread
RE: The coordinates of the Entry widget (canvas) when moving - by berckut72 - Jan-07-2020, 09:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ValueError: could not convert string to float: '' fron Entry Widget russellm44 5 703 Mar-06-2024, 08:42 PM
Last Post: russellm44
  [Tkinter] entry widget DPaul 5 1,536 Jul-28-2023, 02:31 PM
Last Post: deanhystad
  Tkinter Exit Code based on Entry Widget Nu2Python 6 3,010 Oct-21-2021, 03:01 PM
Last Post: Nu2Python
  [Tkinter] canvas widget scroll issue chrisdb 2 3,883 Apr-07-2021, 05:48 AM
Last Post: chrisdb
  method to add entries in multi columns entry frames in self widget sudeshna24 2 2,261 Feb-19-2021, 05:24 PM
Last Post: BashBedlam
  Entry Widget issue PA3040 16 6,867 Jan-20-2021, 02:21 PM
Last Post: pitterbrayn
  [Tkinter] password with Entry widget TAREKYANGUI 9 5,993 Sep-24-2020, 05:27 PM
Last Post: TAREKYANGUI
  [Tkinter] Get the last entry in my text widget Pedroski55 3 6,425 Jul-13-2020, 10:34 PM
Last Post: Pedroski55
  How to place global tk text widget in class or on canvas puje 1 2,340 Jul-04-2020, 09:25 AM
Last Post: deanhystad
  How to retreive the grid location of an Entry widget kenwatts275 7 4,638 Apr-24-2020, 11:39 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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