Changeset 216:f23ab2dd6ce8


Ignore:
Timestamp:
Sep 4, 2013, 11:15:48 AM (7 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Clunkier properties to make pyflakes happy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r215 r216  
    4444        return self.get_shape().body.angle
    4545
    46     @property
    47     def position(self):
     46    def _get_position(self):
    4847        return self.get_shape().body.position
    4948
    50     @position.setter
    51     def position(self, position):
     49    def _set_position(self, position):
    5250        self.get_shape().body.position = position
     51
     52    position = property(_get_position, _set_position)
    5353
    5454    def apply_impulse(self, j, r=(0, 0)):
Note: See TracChangeset for help on using the changeset viewer.