Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Activity Team/Object Chooser
(view source)
Revision as of 19:55, 27 December 2010
8 bytes added
,
19:55, 27 December 2010
m
indent 4 spaces (PEP8)
Line 25:
Line 25:
result = chooser.run()
result = chooser.run()
if result == gtk.RESPONSE_ACCEPT:
if result == gtk.RESPONSE_ACCEPT:
−
self.jobject = chooser.get_selected_object()
+
self.jobject = chooser.get_selected_object()
−
self.path = str(self.jobject.get_file_path())
+
self.path = str(self.jobject.get_file_path())
else:
else:
−
self.jobject = None
+
self.jobject = None
−
self.path = "0"
+
self.path = "0"
=== Random observations: ===
=== Random observations: ===
FGrose
Bureaucrats
,
Check users
,
Administrators
,
Widget editors
8,288
edits