I got it, I did it and what I found:
# Double Click detect without the same of the coordinates.
from tkinter import *
counting = 0
press_is_pressed = 0
got_pressed = 0
double_pressed = 0
window = Tk()
window.attributes('-fullscreen', False)
window.configure(bg='black')
window.geometry("200x200")
window.overrideredirect(False)
def ts_pressing(event):
global press_is_pressed
press_is_pressed = 1
def ts_releasing(event):
global press_is_pressed, double_pressed
press_is_pressed = 0
def ts_double_pressing():
global press_is_pressed, counting, got_pressed
if press_is_pressed == 1:
got_pressed = 1
if press_is_pressed == 0 and got_pressed == 1:
counting = counting + 1
if counting > 200:
counting = 0
got_pressed = 0
if counting > 5 and press_is_pressed == 1 and got_pressed == 1:
print("got double click")
counting = 0
got_pressed = 0
double_pressed = True
else:
double_pressed = False
window.after(1,ts_double_pressing)
window.bind("<Button-1>", ts_pressing)
window.bind("<ButtonRelease-1>", ts_releasing)
ts_double_pressing()
window.mainloop()