3
# ubuntu-sso-login-gui - GUI for registration and login for Ubuntu SSO
5
# Author: Natalia Bidart <natalia.bidart@canonical.com>
7
# Copyright 2010 Canonical Ltd.
9
# This program is free software: you can redistribute it and/or modify it
10
# under the terms of the GNU General Public License version 3, as published
11
# by the Free Software Foundation.
13
# This program is distributed in the hope that it will be useful, but
14
# WITHOUT ANY WARRANTY; without even the implied warranties of
15
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
16
# PURPOSE. See the GNU General Public License for more details.
18
# You should have received a copy of the GNU General Public License along
19
# with this program. If not, see <http://www.gnu.org/licenses/>.
20
"""Script to run the Ubuntu SSO client GUI."""
25
from ubuntu_sso.gui import UbuntuSSOClientGUI
29
TC_URI = 'http://one.ubuntu.com/terms'
30
HELP_TEXT = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' \
31
'Nam sed lorem nibh. Suspendisse gravida nulla non nunc suscipit' \
32
' pulvinar tempus ut augue.'
34
main_quit = lambda *args, **kwargs: gtk.main_quit()
37
if __name__ == '__main__':
42
if '--login' in sys.argv:
46
if '--with-parent-window' in sys.argv:
48
win.set_title(APP_NAME)
49
win.set_position(gtk.WIN_POS_CENTER)
50
win.set_size_request(800, 600)
54
UbuntuSSOClientGUI(close_callback=main_quit, app_name=APP_NAME,
55
tc_uri=tc_uri, help_text=HELP_TEXT, window_id=xid,
56
login_only=login_only)