Skip to content

Commit

Permalink
bump version to 0.7.0 and add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert M Ochshorn authored and Robert M Ochshorn committed Dec 31, 2015
1 parent d546200 commit 9c3b416
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 6 deletions.
26 changes: 22 additions & 4 deletions gentle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import threading
from twisted.internet import reactor
import webbrowser
from PyQt4.QtGui import QApplication, QWidget, QPushButton
from PyQt4.QtGui import QApplication, QWidget, QPushButton, QLabel, QVBoxLayout
from gentle.__version__ import __version__

import serve
import sys
Expand All @@ -27,6 +28,9 @@ def get_open_port(desired=0):

def open_browser():
webbrowser.open("http://localhost:%d/" % (PORT))

def open_about():
webbrowser.open("https://lowerquality.com/gentle")

app = QApplication(sys.argv)
w = QWidget()
Expand All @@ -36,12 +40,26 @@ def open_browser():
def quit_server():
app.exit()

btn = QPushButton('Open in browser', w)
layout = QVBoxLayout()
w.setLayout(layout)

txt = QLabel('''Gentle v%s
A robust yet lenient forced-aligner built on Kaldi.''' % (__version__))
layout.addWidget(txt)

btn = QPushButton('Open in browser')
btn.setStyleSheet("font-weight: bold;")
layout.addWidget(btn)
btn.clicked.connect(open_browser)

quitb = QPushButton('Quit', w)
abt = QPushButton('About Gentle')
layout.addWidget(abt)
abt.clicked.connect(open_about)

quitb = QPushButton('Quit')
layout.addWidget(quitb)
quitb.clicked.connect(quit_server)
quitb.move(0,50)

w.show()

Expand Down
2 changes: 1 addition & 1 deletion gentle/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.5.0'
__version__ = '0.7.0'
2 changes: 1 addition & 1 deletion make_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pyinstaller gentle.spec
# lieu of tracking down the bug, let's just go in and delete some of
# the nastier, offending files.
cd dist/gentle.app/Contents/Resources
rm -rf COPYING Dockerfile *.sh examples *.spec include lib tests *.pyc gentle *.py *.bkp webdata \
rm -rf Dockerfile *.sh examples *.spec include lib tests *.pyc gentle *.py *.bkp webdata \
.git* .travis.yml .DS_Store \
ext/kaldi ext/*.dSYM ext/Makefile ext/*.cc
cd ../MacOS
Expand Down
10 changes: 10 additions & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
padding: 10px 30px;
cursor: pointer;
}
#footer {
margin-top: 100px;
border-top: 1px dotted black;
font-size: 8pt;
font-style: italic;
padding: 10px;
}
</style>
</head>
<body>
Expand All @@ -58,5 +65,8 @@ <h1 class="home"><a href="/">Gentle</a></h1>
<textarea name="transcript"></textarea><br>
<input id="align-button" type=submit value=Align>
</form>
<div id="footer">
<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>.
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions www/view_alignment.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@
}
.phones .phone:last-child {
margin-right: 0;
}
#footer {
margin-top: 100px;
border-top: 1px dotted black;
font-size: 8pt;
font-style: italic;
font-family: Helvetica, sans-serif;
padding: 10px;
}
</style>
</head>
Expand All @@ -99,6 +107,9 @@ <h1 class="home"><a href="/">Gentle</a></h1>
<span id="downloads"> </div>
</div>
<div id="transcript"></div>
<div id="footer">
<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>.
</div>

<script>

Expand Down

0 comments on commit 9c3b416

Please sign in to comment.