mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-12 15:27:14 +03:00
[2186] Remove Some Comments
This commit is contained in:
parent
016fb96e06
commit
1800f8f0b1
@ -7,7 +7,6 @@ See LICENSE file.
|
||||
|
||||
Windows uses the Registry to store values in a flat manner.
|
||||
Linux uses a file, but for commonality it's still a flat data structure.
|
||||
macOS uses a 'defaults' object.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
|
@ -26,7 +26,7 @@ if sys.platform == 'win32':
|
||||
else:
|
||||
# Linux's inotify doesn't work over CIFS or NFS, so poll
|
||||
class FileSystemEventHandler: # type: ignore
|
||||
"""Dummy class to represent a file system event handler on platforms other than macOS and Windows."""
|
||||
"""Dummy class to represent a file system event handler on platforms other than Windows."""
|
||||
|
||||
|
||||
class Dashboard(FileSystemEventHandler):
|
||||
@ -160,7 +160,7 @@ class Dashboard(FileSystemEventHandler):
|
||||
|
||||
def on_modified(self, event) -> None:
|
||||
"""
|
||||
Watchdog callback - DirModifiedEvent on macOS, FileModifiedEvent on Windows.
|
||||
Watchdog callback - FileModifiedEvent on Windows.
|
||||
|
||||
:param event: Watchdog event.
|
||||
"""
|
||||
|
@ -439,7 +439,7 @@ class EDLogs(FileSystemEventHandler):
|
||||
new_journal_file = None
|
||||
|
||||
if logfile:
|
||||
loghandle.seek(0, SEEK_END) # required to make macOS notice log change over SMB
|
||||
loghandle.seek(0, SEEK_END) # required to make macOS notice log change over SMB. # TODO: Do we need this?
|
||||
loghandle.seek(log_pos, SEEK_SET) # reset EOF flag # TODO: log_pos reported as possibly unbound
|
||||
for line in loghandle:
|
||||
# Paranoia check to see if we're shutting down
|
||||
|
2
prefs.py
2
prefs.py
@ -285,7 +285,7 @@ class PreferencesDialog(tk.Toplevel):
|
||||
|
||||
# wait for window to appear on screen before calling grab_set
|
||||
self.parent.update_idletasks()
|
||||
self.parent.wm_attributes('-topmost', 0) # needed for dialog to appear ontop of parent on OSX & Linux
|
||||
self.parent.wm_attributes('-topmost', 0) # needed for dialog to appear ontop of parent on Linux
|
||||
self.wait_visibility()
|
||||
self.grab_set()
|
||||
|
||||
|
2
theme.py
2
theme.py
@ -150,7 +150,7 @@ class _Theme:
|
||||
# the widget has explicit fg or bg attributes.
|
||||
assert isinstance(widget, (tk.BitmapImage, tk.Widget)), widget
|
||||
if not self.defaults:
|
||||
# Can't initialise this til window is created # Windows, MacOS
|
||||
# Can't initialise this til window is created # Windows
|
||||
self.defaults = {
|
||||
'fg': tk.Label()['foreground'], # SystemButtonText, systemButtonText
|
||||
'bg': tk.Label()['background'], # SystemButtonFace, White
|
||||
|
Loading…
x
Reference in New Issue
Block a user