コード例 #1
0
    def __init__(self, balance=10):
        self.account_info = Store()

        curr_balance = self.account_info.checkout("balance")
        curr_balance.set(balance)
        curr_balance.commit()
コード例 #2
0
ファイル: pygame_example.py プロジェクト: samuell/guild
 def __init__(self):
     super(Sprite, self).__init__()
     self.sprite_state = Store()
     self.update_pos(400, 300)
     self.pos = self.get_pos()
     print self.pos