diff options
| author | matin <matin.kaufmann@gmail.com> | 2025-10-01 00:24:53 +0200 |
|---|---|---|
| committer | matin <matin.kaufmann@gmail.com> | 2025-10-01 00:24:53 +0200 |
| commit | 75c1b565c47fd2f04d9c7559386ff611274fac9b (patch) | |
| tree | bf9dd1949e21c8643c9b77e095702c511986bcda /calendar_gui.py | |
| parent | ef3464569123d8f91a7300490a818d0ca299e398 (diff) | |
- fixed inconsistent date calculation by reverting to original prediction code
- some small adjustments to the UI menu
Diffstat (limited to 'calendar_gui.py')
| -rw-r--r-- | calendar_gui.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/calendar_gui.py b/calendar_gui.py index ab0cf65..8e05b37 100644 --- a/calendar_gui.py +++ b/calendar_gui.py @@ -218,25 +218,25 @@ class CalendarManagerGUI(QMainWindow): # File menu file_menu = menubar.addMenu('Start') - # Save action - save_action = QAction('Speichern', self) - save_action.setShortcut('Ctrl+S') - save_action.setIcon(self.style().standardIcon(QStyle.SP_DialogSaveButton)) - save_action.triggered.connect(self.save_file) - file_menu.addAction(save_action) - # Load action load_action = QAction('Laden', self) load_action.setShortcut('Ctrl+L') load_action.setIcon(self.style().standardIcon(QStyle.SP_DialogOpenButton)) load_action.triggered.connect(self.load_file) file_menu.addAction(load_action) + + # Save action + save_action = QAction('Speichern', self) + save_action.setShortcut('Ctrl+S') + save_action.setIcon(self.style().standardIcon(QStyle.SP_DialogSaveButton)) + save_action.triggered.connect(self.save_file) + file_menu.addAction(save_action) # Export PDF action export_pdf_action = QAction('Als PDF exportieren', self) - export_pdf_action.setShortcut('Ctrl+P') + export_pdf_action.setShortcut('Ctrl+E') # Fallback icon; SP_DialogPrintButton may not exist in some Qt styles - export_pdf_action.setIcon(self.style().standardIcon(QStyle.SP_DialogOpenButton)) + export_pdf_action.setIcon(self.style().standardIcon(QStyle.SP_FileIcon)) export_pdf_action.triggered.connect(self.export_pdf) file_menu.addAction(export_pdf_action) |
