~d-perry/cuttlefish/hacking

« back to all changes in this revision

Viewing changes to cuttlefish/__init__.py

  • Committer: David Perry
  • Date: 2016-08-28 02:10:47 UTC
  • Revision ID: d.perry@utoronto.ca-20160828021047-4oygvtb9r7nq534l
Tidy up whitespace at EOL

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2
2
### BEGIN LICENSE
3
3
# Copyright (C) 2012 Alexander von Bremen-Kuehne <noneed4anick@gmail.com>
4
 
# This program is free software: you can redistribute it and/or modify it 
5
 
# under the terms of the GNU General Public License version 3, as published 
 
4
# This program is free software: you can redistribute it and/or modify it
 
5
# under the terms of the GNU General Public License version 3, as published
6
6
# by the Free Software Foundation.
7
 
8
 
# This program is distributed in the hope that it will be useful, but 
9
 
# WITHOUT ANY WARRANTY; without even the implied warranties of 
10
 
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
 
7
#
 
8
# This program is distributed in the hope that it will be useful, but
 
9
# WITHOUT ANY WARRANTY; without even the implied warranties of
 
10
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
11
# PURPOSE.  See the GNU General Public License for more details.
12
 
13
 
# You should have received a copy of the GNU General Public License along 
 
12
#
 
13
# You should have received a copy of the GNU General Public License along
14
14
# with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
### END LICENSE
16
16
 
64
64
 
65
65
GLib.threads_init()
66
66
Gdk.threads_init()
67
 
    
 
67
 
68
68
def parse_options():
69
69
    """Support for command line options"""
70
70
    parser = optparse.OptionParser(version="%%prog %s" % get_version())
84
84
    'constructor for your class instances'
85
85
    opts = parse_options()
86
86
 
87
 
    # Run the application.    
 
87
    # Run the application.
88
88
    ENGINE.setup()
89
89
    window = CuttlefishWindow.CuttlefishWindow()
90
90
    if not opts.hidden: