Skip to content

Commit 9c3b416

Browse files
Robert M OchshornRobert M Ochshorn
authored andcommitted
bump version to 0.7.0 and add footer
1 parent d546200 commit 9c3b416

File tree

5 files changed

+45
-6
lines changed

5 files changed

+45
-6
lines changed

gentle.py

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import threading
33
from twisted.internet import reactor
44
import webbrowser
5-
from PyQt4.QtGui import QApplication, QWidget, QPushButton
5+
from PyQt4.QtGui import QApplication, QWidget, QPushButton, QLabel, QVBoxLayout
6+
from gentle.__version__ import __version__
67

78
import serve
89
import sys
@@ -27,6 +28,9 @@ def get_open_port(desired=0):
2728

2829
def open_browser():
2930
webbrowser.open("http://localhost:%d/" % (PORT))
31+
32+
def open_about():
33+
webbrowser.open("https://lowerquality.com/gentle")
3034

3135
app = QApplication(sys.argv)
3236
w = QWidget()
@@ -36,12 +40,26 @@ def open_browser():
3640
def quit_server():
3741
app.exit()
3842

39-
btn = QPushButton('Open in browser', w)
43+
layout = QVBoxLayout()
44+
w.setLayout(layout)
45+
46+
txt = QLabel('''Gentle v%s
47+
48+
A robust yet lenient forced-aligner built on Kaldi.''' % (__version__))
49+
layout.addWidget(txt)
50+
51+
btn = QPushButton('Open in browser')
52+
btn.setStyleSheet("font-weight: bold;")
53+
layout.addWidget(btn)
4054
btn.clicked.connect(open_browser)
4155

42-
quitb = QPushButton('Quit', w)
56+
abt = QPushButton('About Gentle')
57+
layout.addWidget(abt)
58+
abt.clicked.connect(open_about)
59+
60+
quitb = QPushButton('Quit')
61+
layout.addWidget(quitb)
4362
quitb.clicked.connect(quit_server)
44-
quitb.move(0,50)
4563

4664
w.show()
4765

gentle/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.5.0'
1+
__version__ = '0.7.0'

make_dmg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pyinstaller gentle.spec
66
# lieu of tracking down the bug, let's just go in and delete some of
77
# the nastier, offending files.
88
cd dist/gentle.app/Contents/Resources
9-
rm -rf COPYING Dockerfile *.sh examples *.spec include lib tests *.pyc gentle *.py *.bkp webdata \
9+
rm -rf Dockerfile *.sh examples *.spec include lib tests *.pyc gentle *.py *.bkp webdata \
1010
.git* .travis.yml .DS_Store \
1111
ext/kaldi ext/*.dSYM ext/Makefile ext/*.cc
1212
cd ../MacOS

www/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
padding: 10px 30px;
4545
cursor: pointer;
4646
}
47+
#footer {
48+
margin-top: 100px;
49+
border-top: 1px dotted black;
50+
font-size: 8pt;
51+
font-style: italic;
52+
padding: 10px;
53+
}
4754
</style>
4855
</head>
4956
<body>
@@ -58,5 +65,8 @@ <h1 class="home"><a href="/">Gentle</a></h1>
5865
<textarea name="transcript"></textarea><br>
5966
<input id="align-button" type=submit value=Align>
6067
</form>
68+
<div id="footer">
69+
<a href="https://lowerquality.com/gentle">Gentle</a> is free software released under the <a href="https://opensource.org/licenses/MIT">MIT license</a>. <a href="https://lowerquality.com/gentle">Homepage</a> | <a href="https://github.com/lowerquality/gentle">Source code</a>.
70+
</div>
6171
</body>
6272
</html>

www/view_alignment.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@
8888
}
8989
.phones .phone:last-child {
9090
margin-right: 0;
91+
}
92+
#footer {
93+
margin-top: 100px;
94+
border-top: 1px dotted black;
95+
font-size: 8pt;
96+
font-style: italic;
97+
font-family: Helvetica, sans-serif;
98+
padding: 10px;
9199
}
92100
</style>
93101
</head>
@@ -99,6 +107,9 @@ <h1 class="home"><a href="/">Gentle</a></h1>
99107
<span id="downloads"> </div>
100108
</div>
101109
<div id="transcript"></div>
110+
<div id="footer">
111+
<a href="https://lowerquality.com/gentle">Gentle</a> is free software released under the <a href="https://opensource.org/licenses/MIT">MIT license</a>. <a href="https://lowerquality.com/gentle">Homepage</a> | <a href="https://github.com/lowerquality/gentle">Source code</a>.
112+
</div>
102113

103114
<script>
104115

0 commit comments

Comments
 (0)