multipage.rst 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. .. This is a autogemerated documentation from python docstrings. It was generated using DStrings2Doc.
  2. .. module:: multipage
  3. .. _multipage:
  4. Module multipage
  5. ================
  6. .. py:class:: RightSwitch(kcgw.ClickableSVG)
  7. Buttons to change the Page in a MultiPage
  8. .. py:method:: __init__(self, pagesWidget, width=10, height=20, wwidth=None, hidden=False)
  9. Initialise a RightSwitch
  10. :param pagesWidget: (MultiPage) The MultiPage widget to switch pages upon press
  11. :param width: (int) width of the icon shown on the switch
  12. :param height: (int) height of the icon shown on the switch
  13. :param wwidth: (int) Width of the switch
  14. :param hidden: (bool) whether this switch is shown or hidden
  15. .. py:class:: LeftSwitch(kcgw.ClickableSVG)
  16. Buttons to change the Page in a MultiPage Widget
  17. .. py:method:: __init__(self, pagesWidget, width=10, height=20, wwidth=None, hidden=False)
  18. Initialise a LeftSwitch
  19. :param pagesWidget: (MultiPage) The MultiPage widget to switch pages upon press
  20. :param width: (int) width of the icon shown on the switch
  21. :param height: (int) height of the icon shown on the switch
  22. :param wwidth: (int) Width of the switch
  23. :param hidden: (bool) whether this switch is shown or hidden
  24. .. py:class:: LeftRightSwitch(QtGui.QWidget)
  25. Small Buttons to change the Page in a MultiPage Widget
  26. .. py:method:: __init__(self, pagesWidget)
  27. Initialise a combination of left and right switch
  28. :param pagesWidget: (MultiPage) The multipage widget instance to change pages on
  29. .. py:method:: disable_left(self)
  30. Disable the switch to the page left of the current one
  31. .. py:method:: enable_left(self)
  32. Enable the switch to the page left of the current one
  33. .. py:method:: disable_right(self)
  34. Disable the switch to the page right of the current one
  35. .. py:method:: enable_right(self)
  36. Enable the switch to the page right of the current one
  37. .. py:class:: MultiPage(QtGui.QStackedWidget)
  38. Implementation of a Paginated View Widget
  39. .. py:method:: __init__(self, parent=None)
  40. .. py:method:: addPage(self, NewPage, name=None, set_to_first=True)
  41. Add a page (a Widget) to the MultiPage Widget
  42. :param NewPage: widget to add as new page
  43. :param name: name of that page (e.g. to show in the status bar)
  44. :param bool set_to_first: Set the current page to first page
  45. .. py:method:: removePage(self, page)
  46. Removes a page from the pages widget and adjusts switches accordingly
  47. :param page: what page to remove
  48. .. py:method:: left(self)
  49. .. py:method:: right(self)
  50. .. py:method:: setCurrentIndex(self, p_int)
  51. Set te current Index of the MultiPage Widget (e.g. set the current page)
  52. :param p_int: (int) what page