Activity Team/Compatibility Tips: Difference between revisions

Line 108: Line 108:


         self.activity.fullscreen_button.connect('clicked', self.activity._do_fullscreen_cb)
         self.activity.fullscreen_button.connect('clicked', self.activity._do_fullscreen_cb)
=== Python versions ===
Some Sugar systems are running on older versions of Python. Take care to make sure you don't run into syntax errors do to changes in the Python language. For example, I was burned on the following:
    except Exception as e: # works fine with Python 2.6 but raises a syntax error with Python 2.5
    except Exception, e:  # works fine in both cases.
See python.org for more information on incompatibilities between versions.