MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / NextPage

Method NextPage

gui/chrome_tabs.py:186–200  ·  view source on GitHub ↗

Used with keyboard shortcut for next page navigation

(self)

Source from the content-addressed store, hash-verified

184 return len(self._pages)
185
186 def NextPage(self):
187 """Used with keyboard shortcut for next page navigation"""
188 current_page = self.GetSelection()
189
190 if current_page is None:
191 return
192
193 if current_page < self.GetPageCount() - 1:
194 self.SetSelection(current_page + 1)
195 new_page = current_page + 1
196 else:
197 self.SetSelection(0)
198 new_page = 0
199
200 wx.PostEvent(self, PageChanged(current_page, new_page))
201
202 def PrevPage(self):
203 """Used with keyboard shortcut for previous page navigation"""

Callers 1

CTabNextMethod · 0.80

Calls 4

GetSelectionMethod · 0.95
GetPageCountMethod · 0.95
SetSelectionMethod · 0.95
PageChangedClass · 0.85

Tested by

no test coverage detected