1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

EDMarketConnector: Switch to Optional[int] rather than Union...

This commit is contained in:
Athanasius 2020-10-12 17:12:45 +01:00
parent e5e0eb0373
commit 07c7639345

View File

@ -14,7 +14,7 @@ from os import chdir, environ
from os.path import dirname, isdir, join
from sys import platform
from time import localtime, strftime, time
from typing import TYPE_CHECKING, Any, Mapping, Tuple, Union
from typing import TYPE_CHECKING, Any, Mapping, Optional, Tuple
from constants import applongname, appname, protocolhandler_redirect
@ -447,7 +447,7 @@ class AppWindow(object):
image=self.theme_icon, cursor='fleur',
anchor=tk.W, compound=tk.LEFT)
theme_titlebar.grid(columnspan=3, padx=2, sticky=tk.NSEW)
self.drag_offset: Tuple[Union[None, int], Union[None, int]] = (None, None)
self.drag_offset: Tuple[Optional[int], Optional[int]] = (None, None)
theme_titlebar.bind('<Button-1>', self.drag_start)
theme_titlebar.bind('<B1-Motion>', self.drag_continue)
theme_titlebar.bind('<ButtonRelease-1>', self.drag_end)