~ubuntu-branches/ubuntu/lucid/autokey/lucid

« back to all changes in this revision

Viewing changes to autokey

  • Committer: Bazaar Package Importer
  • Author(s): Luke Faraone
  • Date: 2009-08-17 09:18:07 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090817091807-0g39xeau3xnotc73
Tags: 0.60.4-1
* New upstream version
* Bump standards version
* Update debian/watch file with new URL

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
# -*- coding: utf-8 -*-
3
3
 
4
 
import gtk, sys, optparse
5
 
from autokey.autokey import AutoKeyApplication
6
 
 
7
 
# This is overkill at the moment, but might be handy to have in the future
8
 
p = optparse.OptionParser()
9
 
p.add_option("-v", "--verbose", help="Enable verbose logging", action="store_true", default=False)
10
 
p.add_option("-c", "--configure", help="Show the configuration window on startup", action="store_true", default=False)
11
 
options, args = p.parse_args()
12
 
 
13
 
gtk.gdk.threads_init()
14
 
a = AutoKeyApplication(options.verbose, options.configure)
 
4
import sys
 
5
from autokey.autokey import Application
 
6
 
 
7
a = Application()
15
8
try:
16
9
    a.main()
17
10
except KeyboardInterrupt: