Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Mar 18, 2019
1 parent efd2ae7 commit 4cc2154
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manageterms.ui
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@
</layout>
</widget>
</widget>
<tabstops>
<tabstop>wrong</tabstop>
<tabstop>right</tabstop>
<tabstop>languages</tabstop>
<tabstop>save</tabstop>
<tabstop>save_close</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Check the `words` folder for the languages available.
```
pip3 install keyboard
```
For the UI is required PyQt5.

## How to use with Target Language(s)
- For English only
Expand All @@ -26,6 +27,8 @@ syntaxalert.py -words ./words/en.json -words2 ./words/it.json
manageterms.py -wrong="wdiget" -right="widget" -lang=en
```

You can use also an ui for that: `manageterms-gui.py`

## Adding New Terms using CSV File
Directly upload new terms using a CSV file with row format:
```
Expand Down
4 changes: 4 additions & 0 deletions ui_manageterms.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def setupUi(self, MainWindow):

self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.wrong, self.right)
MainWindow.setTabOrder(self.right, self.languages)
MainWindow.setTabOrder(self.languages, self.save)
MainWindow.setTabOrder(self.save, self.save_close)

def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
Expand Down

0 comments on commit 4cc2154

Please sign in to comment.