[Sugar-devel] [PATCH] Add the DescriptionItem if available
godiard at sugarlabs.org
godiard at sugarlabs.org
Thu Apr 26 08:06:11 EDT 2012
From: Gonzalo Odiard <godiard at gmail.com>
Signed-off-by: Gonzalo Odiard <gonzalo at laptop.org>
---
activity.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/activity.py b/activity.py
index a7f8730..ffc9241 100644
--- a/activity.py
+++ b/activity.py
@@ -50,6 +50,14 @@ class HelloWorldActivity(activity.Activity):
toolbar_box.toolbar.insert(title_entry, -1)
title_entry.show()
+ try:
+ from sugar3.activity.widgets import DescriptionItem
+ description_item = DescriptionItem(self)
+ toolbar_box.toolbar.insert(description_item, -1)
+ description_item.show()
+ except:
+ pass
+
share_button = ShareButton(self)
toolbar_box.toolbar.insert(share_button, -1)
share_button.show()
--
1.7.10
More information about the Sugar-devel
mailing list