Merge pull request #2005 from gwhitney/setscrollbar_types

fix: Correct types of arguments to ScrolledWindow.SetScrollbars
This commit is contained in:
Scott Talbert
2021-11-29 21:20:30 -05:00
committed by GitHub
3 changed files with 9 additions and 9 deletions

View File

@@ -9654,8 +9654,8 @@ class UltimateListMainWindow(wx.ScrolledWindow):
self._linesPerPage = clientHeight//lineHeight
self.SetScrollbars(SCROLL_UNIT_X, lineHeight,
(self.GetHeaderWidth()-decrement)/SCROLL_UNIT_X,
(entireHeight + lineHeight - 1)/lineHeight,
(self.GetHeaderWidth()-decrement)//SCROLL_UNIT_X,
(entireHeight + lineHeight - 1)//lineHeight,
self.GetScrollPos(wx.HORIZONTAL),
self.GetScrollPos(wx.VERTICAL),
True)
@@ -9676,8 +9676,8 @@ class UltimateListMainWindow(wx.ScrolledWindow):
decrement = SCROLL_UNIT_X
self.SetScrollbars(SCROLL_UNIT_X, SCROLL_UNIT_Y,
(self.GetHeaderWidth()-decrement)/SCROLL_UNIT_X,
(entireHeight + SCROLL_UNIT_Y - 1)/SCROLL_UNIT_Y,
(self.GetHeaderWidth()-decrement)//SCROLL_UNIT_X,
(entireHeight + SCROLL_UNIT_Y - 1)//SCROLL_UNIT_Y,
self.GetScrollPos(wx.HORIZONTAL),
self.GetScrollPos(wx.VERTICAL),
True)
@@ -9728,8 +9728,8 @@ class UltimateListMainWindow(wx.ScrolledWindow):
line._gi.ExtendWidth(widthMax)
self.SetScrollbars(SCROLL_UNIT_X, lineHeight,
(x + SCROLL_UNIT_X)/SCROLL_UNIT_X,
(y + lineHeight)/lineHeight,
(x + SCROLL_UNIT_X)//SCROLL_UNIT_X,
(y + lineHeight)//lineHeight,
self.GetScrollPos(wx.HORIZONTAL),
self.GetScrollPos(wx.VERTICAL),
True)
@@ -9797,7 +9797,7 @@ class UltimateListMainWindow(wx.ScrolledWindow):
break # Everything fits, no second try required.
self.SetScrollbars(SCROLL_UNIT_X, lineHeight,
(entireWidth + SCROLL_UNIT_X)/SCROLL_UNIT_X,
(entireWidth + SCROLL_UNIT_X)//SCROLL_UNIT_X,
0,
self.GetScrollPos(wx.HORIZONTAL),
0,