Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxGUI: Fixed PEP8 error in startup/ #4770

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ per-file-ignores =
gui/wxpython/mapwin/base.py: E722
gui/wxpython/mapwin/buffered.py: E722
gui/wxpython/mapwin/graphics.py: E722
gui/wxpython/startup/locdownload.py: E722, E402
gui/wxpython/timeline/g.gui.timeline.py: E501
# Generated file
gui/wxpython/menustrings.py: E501
Expand Down
5 changes: 4 additions & 1 deletion gui/wxpython/startup/locdownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@

set_gui_path()

# flake8: noqa: E402
from core.debug import Debug
from core.gthread import gThread
from gui_core.wrap import Button, StaticText

# flakes8: qa


# TODO: labels (and descriptions) translatable?
LOCATIONS = [
Expand Down Expand Up @@ -93,7 +96,7 @@ def write(self, string):
heigth = self._get_heigth(string)
wx.CallAfter(self.out.SetLabel, string)
self._resize(heigth)
except:
except wx.PyDeadObjectError:
# window closed -> PyDeadObjectError
pass

Expand Down
Loading