Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-09-26 02:35:42 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-09-26 02:35:42 (GMT)
commit73f074e7f5359319f79c8c9a9555eed77866c729 (patch)
tree86ef42a9b810f43c925a8543ce81596deb50a4f1 /tawindow.py
parent752e64211ec9da2d5eee8e2073df4a86ceefe55c (diff)
add exception for running outside of Sugar
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tawindow.py b/tawindow.py
index 0424093..56c6621 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#Copyright (c) 2007, Playful Invention Company
-#Copyright (c) 2008-9, Walter Bender
+#Copyright (c) 2008-9, Walter Bendera
#Copyright (c) 2009, Raúl Gutiérrez Segalés
#Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -43,7 +43,10 @@ from tasprites import *
from talogo import *
from taturtle import *
from taproject import *
-from sugar.graphics.objectchooser import ObjectChooser
+try:
+ from sugar.graphics.objectchooser import ObjectChooser
+except:
+ pass
from tahoverhelp import *
from gettext import gettext as _