Skip to content

Commit

Permalink
[What] Revise the ChoiceNumberPanel has some white line
Browse files Browse the repository at this point in the history
[Why] @CELL_SIZE is float number, the draw rectangle will have some truncate
[How] @CELL_SIZE store in integer
  • Loading branch information
falldog committed May 17, 2010
1 parent dfa7bea commit ace0c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def getChoiceNums(self):
return sorted(self.focusNums)

def setCellSize(self, size):
self.CELL_SIZE = size
self.CELL_SIZE = int(size)
self.font = wx.Font( self.CELL_SIZE*0.5, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, 'Comic Sans MS' )

def setCellPos(self, i, j):
Expand Down

0 comments on commit ace0c85

Please sign in to comment.