Skip to content

Commit

Permalink
Prepare v4.6.1 based on novxlib v4.4.0
Browse files Browse the repository at this point in the history
- Add accelerator key to the "Online help" menu entry.
  • Loading branch information
peter88213 committed Jul 24, 2024
1 parent f543394 commit a5754f1
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 16 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Download the latest release](docs/img/download-button.png)](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.6.0.pyzw)
[![Download the latest release](docs/img/download-button.png)](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.6.1.pyzw)
[![Changelog](docs/img/changelog-button.png)](docs/changelog.md)
[![News](docs/img/news-button.png)](https://github.com/peter88213/novelibre/discussions/1)
[![Online help](docs/img/help-button.png)](https://peter88213.github.io/nvhelp-en/)
Expand Down Expand Up @@ -78,10 +78,10 @@ I use the program myself and fix errors immediately if I notice any. As far as I

### Default: Executable Python zip archive

Download the latest release [novelibre_v4.6.0.pyzw](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.6.0.pyzw)
Download the latest release [novelibre_v4.6.1.pyzw](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.6.1.pyzw)

- Launch *novelibre_v4.6.0.pyzw* by double-clicking (Windows/Linux desktop),
- or execute `python novelibre_v4.6.0.pyzw` (Windows), resp. `python3 novelibre_v4.6.0.pyzw` (Linux) on the command line.
- Launch *novelibre_v4.6.1.pyzw* by double-clicking (Windows/Linux desktop),
- or execute `python novelibre_v4.6.1.pyzw` (Windows), resp. `python3 novelibre_v4.6.1.pyzw` (Linux) on the command line.

#### Important

Expand All @@ -97,9 +97,9 @@ the zip file.

### Alternative: Zip file

The package is also available in zip format: [novelibre_v4.6.0.zip](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.6.0.zip)
The package is also available in zip format: [novelibre_v4.6.1.zip](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.6.1.zip)

- Extract the *novelibre_v4.6.0* folder from the downloaded zipfile "novelibre_v4.6.0.zip".
- Extract the *novelibre_v4.6.1* folder from the downloaded zipfile "novelibre_v4.6.1.zip".
- Move into this new folder and launch *setup.pyw* by double-clicking (Windows/Linux desktop),
- or execute `python setup.pyw` (Windows), resp. `python3 setup.pyw` (Linux) on the command line.

Expand Down
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[LATEST]
version = 4.6.0
download_link = https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.6.0.pyzw
version = 4.6.1
download_link = https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.6.1.pyzw
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

See the [GitHub "Features" project](https://github.com/users/peter88213/projects/14).

### v4.6.1

- Add accelerator key to the "Online help" menu entry.

Based on novxlib v4.4.0

### v4.6.0

- Provide context sensitive help via F1 key and several mouse buttons.
Expand Down
6 changes: 3 additions & 3 deletions i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 4.6.0\n"
"POT-Creation-Date: 2024-07-24 13:42:22\n"
"PO-Revision-Date: 2024-07-24 13:42:22\n"
"Project-Id-Version: 4.6.1\n"
"POT-Creation-Date: 2024-07-24 18:32:27\n"
"PO-Revision-Date: 2024-07-24 18:32:27\n"
"Last-Translator: Peter Triesberger\n"
"Language: de\n"
"MIME-Version: 1.0\n"
Expand Down
Binary file modified i18n/locale/de/LC_MESSAGES/novelibre.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 4.6.0\n"
"POT-Creation-Date: 2024-07-24 13:42:22\n"
"Project-Id-Version: 4.6.1\n"
"POT-Creation-Date: 2024-07-24 18:32:27\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: LANGUAGE\n"
Expand Down
5 changes: 3 additions & 2 deletions src/nvlib/view/nv_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class NvView:
_KEY_DETACH_PROPERTIES = ('<Control-Alt-d>', 'Ctrl-Alt-D')
_KEY_FOLDER = ('<Control-p>', 'Ctrl-P')
_KEY_LOCK_PROJECT = ('<Control-l>', 'Ctrl-L')
_KEY_OPEN_HELP = ('<F1>', 'F1')
_KEY_OPEN_PROJECT = ('<Control-o>', 'Ctrl-O')
_KEY_QUIT_PROGRAM = ('<Control-q>', 'Ctrl-Q')
_KEY_REFRESH_TREE = ('<F5>', 'F5')
Expand Down Expand Up @@ -596,7 +597,7 @@ def _bind_events(self):
self.root.bind('<5>', self.tv.go_forward)
else:
self.root.bind(self._KEY_QUIT_PROGRAM[0], self._ctrl.on_quit)
self.root.bind('<F1>', self._open_help)
self.root.bind(self._KEY_OPEN_HELP[0], self._open_help)

def _build_menu(self):
"""Add commands and submenus to the main menu."""
Expand Down Expand Up @@ -766,7 +767,7 @@ def _build_menu(self):
# "Help" menu.
self.helpMenu = tk.Menu(self.mainMenu, tearoff=0)
self.mainMenu.add_cascade(label=_('Help'), menu=self.helpMenu)
self.helpMenu.add_command(label=_('Online help'), command=self._open_help)
self.helpMenu.add_command(label=_('Online help'), accelerator=self._KEY_OPEN_HELP[1], command=self._open_help)
self.helpMenu.add_command(label=f"novelibre {_('Home page')}", command=lambda: webbrowser.open(HOME_URL))

def _export_options(self, event=None):
Expand Down
2 changes: 1 addition & 1 deletion tools/build.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="novelibre" basedir=".">
<property name="version" value="4.6.0" />
<property name="version" value="4.6.1" />
<property name="test-app" value="novelibre" />

<property name="source-path" location="../src" />
Expand Down

0 comments on commit a5754f1

Please sign in to comment.