~pythonregexp2.7/python/issue2636-11

« back to all changes in this revision

Viewing changes to Demo/tkinter/guido/solitaire.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-21 17:53:26 UTC
  • mfrom: (39025.1.14 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080921175326-92vaej2hc3yuecxb
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
        self.group = Group(canvas)
169
169
 
170
170
        text = "%s  %s" % (VALNAMES[value], suit)
171
 
        self.__text = CanvasText(canvas, CARDWIDTH/2, 0,
 
171
        self.__text = CanvasText(canvas, CARDWIDTH//2, 0,
172
172
                               anchor=N, fill=self.color, text=text)
173
173
        self.group.addtag_withtag(self.__text)
174
174
 
589
589
 
590
590
    def animatedmoveto(self, card, dest):
591
591
        for i in range(10, 0, -1):
592
 
            dx, dy = (dest.x-card.x)/i, (dest.y-card.y)/i
 
592
            dx, dy = (dest.x-card.x)//i, (dest.y-card.y)//i
593
593
            card.moveby(dx, dy)
594
594
            self.master.update_idletasks()
595
595