Skip to content

Commit

Permalink
Merge pull request #95 from balshetzer/master
Browse files Browse the repository at this point in the history
Live configuration and machine status display
  • Loading branch information
balshetzer committed Jul 6, 2013
2 parents 0e7d4b0 + a190ae5 commit 90e6e64
Show file tree
Hide file tree
Showing 33 changed files with 1,210 additions and 680 deletions.
28 changes: 2 additions & 26 deletions application/plover
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
#!/usr/bin/env python

import sys
import wx
import traceback
import os
from plover.main import main

import plover.gui.main
import plover.oslayer.processlock
main()

def show_error(title, message):
app = wx.PySimpleApp()
print message
alert_dialog = wx.MessageDialog(None,
message,
title,
wx.OK | wx.ICON_INFORMATION)
alert_dialog.ShowModal()
alert_dialog.Destroy()

try:
# Ensure only one instance of Plover is running at a time.
with plover.oslayer.processlock.PloverLock():
gui = plover.gui.main.PloverGUI()
gui.MainLoop()
except plover.oslayer.processlock.LockNotAcquiredException:
show_error('Error', 'Another instance of Plover is already running.')
except:
show_error('Unexpected error', traceback.format_exc())
os._exit(1)
4 changes: 2 additions & 2 deletions plover/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

"""Plover: Open Source Stenography Software"""

__version__ = '2.2.0'
__version__ = '2.2.1'
__copyright__ = '(C) 2010-2011 Joshua Harlan Lifton'
__url__ = 'http://stenoknight.com/plover'
__download_url__ = 'https://launchpad.net/plover'
__download_url__ = 'https://github.com/plover/plover'
__credits__ = ['Stenographer: Mirabai Knight',
'Coder: Joshua Harlan Lifton',
'Contributors: Hesky Fisher']
Expand Down
Loading

0 comments on commit 90e6e64

Please sign in to comment.