Skip to content

Commit

Permalink
remove other GUI options that are not implemented
Browse files Browse the repository at this point in the history
remove unused import + reduce scope of import exceptions
proper check for None values
staticmethod + classmethod
fix shadowing
fix mutable default arg
more pythonic way to check len
simplify checks
Unused local symbols
remove some obvious comments
drop unused widget
handle error on quit
use os.path.join
use os.makedirs
fix some naming to be clearer
  • Loading branch information
Ptosiek committed Sep 17, 2023
1 parent 2e37dc0 commit 3056fd4
Show file tree
Hide file tree
Showing 56 changed files with 425 additions and 582 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/log/
/screenshot/
/maptile/*
/course/ridewithgps/*
/course/*html*
/courses/ridewithgps/*
/courses/*html*
/.idea/
/.vscode/
/.venv/
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion modules/button_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def __init__(self, config):
self.config = config

def press_button(self, button_hard, press_button, index):
if self.config.gui == None or self.config.gui.stack_widget == None:
if self.config.gui is None or self.config.gui.stack_widget is None:
return

w_index = self.config.gui.stack_widget.currentIndex()
Expand Down
Loading

0 comments on commit 3056fd4

Please sign in to comment.