-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from balshetzer/master
Live configuration and machine status display
- Loading branch information
Showing
33 changed files
with
1,210 additions
and
680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.