Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2011-01-26 01:04:50 (GMT)
committer Walter Bender <walter@sugarlabs.org>2011-01-26 01:04:50 (GMT)
commit4ad1d9c535a0183a628c92edc6709150f1879cdc (patch)
tree1e6564ffad646f628fc3cb98452c36c5d64ac964 /TurtleArt/tawindow.py
parentaaee4ed0879f85ab754bba8bcee5ad4330106a68 (diff)
parent25b970f077bd0cae6b38a6dcb57652f4631c8c55 (diff)
Merge git://git.collabora.co.uk/git/user/rgs/turtleart/
Diffstat (limited to 'TurtleArt/tawindow.py')
-rwxr-xr-xTurtleArt/tawindow.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index ba5b5cf..f9c0d4b 100755
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -3,6 +3,7 @@
#Copyright (c) 2008-10, Walter Bender
#Copyright (c) 2009-10 Raúl Gutiérrez Segalés
#Copyright (C) 2010 Emiliano Pastorino <epastorino@plan.ceibal.edu.uy>
+#Copyright (c) 2011 Collabora Ltd. <http://www.collabora.co.uk/>
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
@@ -100,6 +101,7 @@ class TurtleArtWindow():
self._loaded_project = ''
self.win = None
self.parent = parent
+ self.send_event = None # method to send events over the network
if type(win) == gtk.DrawingArea:
self.interactive_mode = True
self.window = win
@@ -400,6 +402,10 @@ class TurtleArtWindow():
if self.running_sugar and hasattr(self.activity, 'chattube') and\
self.activity.chattube is not None:
return True
+
+ if self.send_event:
+ return True
+
return False
def is_project_empty(self):