2008-05-29から1日間の記事一覧

テトリスのソースを読む(その5)

個々のブロックを描くのに、wxPaintDCクラスを使っている。その使い方は、 http://www.harukaze.net/~haruka/wxpython/wxpy18.htmlに詳しい。とても良く分かる。メソッドdrawSquareを見る。 def drawSquare(self, dc, x, y, shape): ...(略) pen = wx.Pen(l…