From 85b8445a2c65ea5c0b8f4dfb48afe79b9ddb53b8 Mon Sep 17 00:00:00 2001 From: flintparrell Date: Fri, 22 May 2020 08:11:13 -0700 Subject: [PATCH] fixed semicolons in main, and type in readme, centered volume slider --- README.md | 2 +- main.py | 4 ++-- ui_mainwnd.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3ecec0f..5562723 100644 --- a/README.md +++ b/README.md @@ -77,5 +77,5 @@ If you own a HCS voicepack, copy the whole voicepack folder (like 'hcspack', 'hc /voicepacks/hcspack/... ### Improve voice recognition accuracy -Please see this ressource on how to train the acoustic model of pocketsphinx to match your voice: +Please see this resource on how to train the acoustic model of pocketsphinx to match your voice: https://cmusphinx.github.io/wiki/tutorialadapt/ \ No newline at end of file diff --git a/main.py b/main.py index 2ad6d0f..ec6af1c 100755 --- a/main.py +++ b/main.py @@ -306,8 +306,8 @@ class MainWnd(QWidget): try: args = shlex.split('xdotool search --name "(CLIENT)"') window_id = str(subprocess.check_output(args)) - window_id = window_id.replace('b\'', ''); - window_id = window_id.replace('\\n\'',''); + window_id = window_id.replace('b\'', '') + window_id = window_id.replace('\\n\'','') except subprocess.CalledProcessError: window_id = None pass diff --git a/ui_mainwnd.py b/ui_mainwnd.py index 30776d5..215b46d 100644 --- a/ui_mainwnd.py +++ b/ui_mainwnd.py @@ -30,7 +30,7 @@ class Ui_MainWidget(object): spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.groupBox = QtWidgets.QGroupBox(MainWidget) - self.groupBox.setMinimumSize(QtCore.QSize(200, 0)) + self.groupBox.setMinimumSize(QtCore.QSize(200, 42)) self.groupBox.setAlignment(QtCore.Qt.AlignCenter) self.groupBox.setObjectName("groupBox") self.sliderVolume = QtWidgets.QSlider(self.groupBox)