Compare commits

..

No commits in common. "9c7fe0c32d66d9b275d24ecdfccc591f908ee663" and "c0a37c4b4513e3459d478b0aa7ecba72f234a836" have entirely different histories.

2 changed files with 12 additions and 11 deletions

View File

@ -64,6 +64,7 @@ class AnimeDialog(QDialog):
self.name_edit.setText(html.unescape(entry[1]))
self.year_spin.setValue(entry[2])
self.season_combo.setCurrentText((entry[3] or "Other").capitalize())
print("entry[3] = " + entry[3])
self.status_combo.setCurrentText(entry[4])
self.type_combo.setCurrentText(entry[5] or '')
self.comment_edit.setPlainText(html.unescape(entry[6] or ''))
@ -110,8 +111,8 @@ class ShortcutsDialog(QDialog):
shortcuts_text.setPlainText("""
Global Shortcuts:
- A: Add an anime
- Ctrl + Page Down: Next tab
- Ctrl + Page Up: Previous tab
- Page Down: Next tab
- Page Up: Previous tab
- Ctrl + Q: Quit the program
- R: Pick random anime
- Ctrl + + : Increase table scale
@ -819,6 +820,14 @@ class AnimeTracker(QMainWindow):
if modifiers == Qt.NoModifier:
if key == Qt.Key_A:
self.add_anime()
elif key == Qt.Key_PageDown:
current = self.tab_widget.currentIndex()
if current < self.tab_widget.count() - 1:
self.tab_widget.setCurrentIndex(current + 1)
elif key == Qt.Key_PageUp:
current = self.tab_widget.currentIndex()
if current > 0:
self.tab_widget.setCurrentIndex(current - 1)
elif key == Qt.Key_R:
self.random_pick()
elif key == Qt.Key_Q:
@ -837,14 +846,6 @@ class AnimeTracker(QMainWindow):
self.set_current_tab_by_identifier(current_id)
elif key == Qt.Key_Q:
self.close()
elif key == Qt.Key_PageDown:
current = self.tab_widget.currentIndex()
if current < self.tab_widget.count() - 1:
self.tab_widget.setCurrentIndex(current + 1)
elif key == Qt.Key_PageUp:
current = self.tab_widget.currentIndex()
if current > 0:
self.tab_widget.setCurrentIndex(current - 1)
super().keyPressEvent(event)

View File

@ -11,7 +11,7 @@ Then run a binary:
`./dist/AnimeTracker/AnimeTracker`
## How to update the binary file
`rm -rf ~/Applications/AnimeTracker/AnimeTracker/_internal && cp -r ~/Documents/programs/python/anime-tracker/dist/AnimeTracker ~/Applications/AnimeTracker`
cp ~/Documents/programs/python/anime-tracker/dist/AnimeTracker/AnimeTracker ~/Applications/AnimeTracker/AnimeTracker
## How to run this app without building:
`python frontend.py`