PycordViews 1.2.21__py3-none-any.whl → 1.2.22__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ class Pagination:
14
14
  Allows you to easily setup a view pagination
15
15
  """
16
16
 
17
- def __init__(self, timeout: Union[float, None] = None, disabled_on_timeout: bool = False):
17
+ def __init__(self, timeout: Union[float, None] = None, disabled_on_timeout: bool = False, default_row: int = 0):
18
18
  """
19
19
  Initialisation for pagination
20
20
  :param timeout: The time before disable items on the view
@@ -22,11 +22,11 @@ class Pagination:
22
22
  """
23
23
  self.__view = EasyModifiedViews(timeout, disabled_on_timeout=disabled_on_timeout)
24
24
 
25
- self.__view.add_items(Button(label='⏮', row=0, custom_id='back+', style=ButtonStyle.blurple))
26
- self.__view.add_items(Button(label='◀', row=0, custom_id='back', style=ButtonStyle.blurple))
27
- self.__view.add_items(Button(label='None', row=0, custom_id='counter', style=ButtonStyle.gray, disabled=True))
28
- self.__view.add_items(Button(label='▶', row=0, custom_id='forward', style=ButtonStyle.blurple))
29
- self.__view.add_items(Button(label='⏭', row=0, custom_id='forward+', style=ButtonStyle.blurple))
25
+ self.__view.add_items(Button(label='⏮', row=default_row, custom_id='back+', style=ButtonStyle.blurple))
26
+ self.__view.add_items(Button(label='◀', row=default_row, custom_id='back', style=ButtonStyle.blurple))
27
+ self.__view.add_items(Button(label='None', row=default_row, custom_id='counter', style=ButtonStyle.gray, disabled=True))
28
+ self.__view.add_items(Button(label='▶', row=default_row, custom_id='forward', style=ButtonStyle.blurple))
29
+ self.__view.add_items(Button(label='⏭', row=default_row, custom_id='forward+', style=ButtonStyle.blurple))
30
30
  self.__view.set_callable('back+', 'back', 'forward', 'forward+', _callable=self.__turn_page)
31
31
 
32
32
  self.__pages: list[Page] = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PycordViews
3
- Version: 1.2.21
3
+ Version: 1.2.22
4
4
  Summary: Views and multibot for py-cord library
5
5
  Home-page: https://github.com/BOXERRMD/Py-cord_Views
6
6
  Author: Chronos (alias BOXERRMD)
@@ -17,12 +17,12 @@ pycordViews/multibot/process.py,sha256=wp5jS4Y69pyhm-gM3iq6epobpUHf1Pb-CtZt8I05J
17
17
  pycordViews/pagination/__init__.py,sha256=rvOp-nGXZ6EX_ojK1_1lcOHYUcrB0LG3DL7zwatkRPY,105
18
18
  pycordViews/pagination/errors.py,sha256=CYb5gBcXx0kYDUDkNpfUrqSxQAcJE_qfpomWtUFOsTk,316
19
19
  pycordViews/pagination/page.py,sha256=sKi_gCFt1euY7uJKWgMnxEqP1B4LMhUysxQ8oQbhNVQ,1147
20
- pycordViews/pagination/pagination_view.py,sha256=kkbOhTqkIckAOvKL2Dli2v1ABjv5NzWh8XoV6cPm3mQ,5610
20
+ pycordViews/pagination/pagination_view.py,sha256=NLRqrnYEJP5tvEmZjJKWa_IIRyUGTq917d79sHbaRyU,5682
21
21
  pycordViews/views/__init__.py,sha256=yligptZmw-np8tjKLr76SVmi0807Nk6jCyKkKYLhbCY,89
22
22
  pycordViews/views/easy_modified_view.py,sha256=RRaSqstc1oLrAOUOBvKYkRQyU-_C2kOKV7CDlttLHM8,13965
23
23
  pycordViews/views/errors.py,sha256=AkhGskuBjbFs0ZQdTDlVyfvAJ1WRMMQx2sAXUnYjmog,360
24
- pycordviews-1.2.21.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
- pycordviews-1.2.21.dist-info/METADATA,sha256=UKU4sU76xzg5NoMEhhYlOe2bhFrCW5So4MVyJMlfJk4,11947
26
- pycordviews-1.2.21.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
27
- pycordviews-1.2.21.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
- pycordviews-1.2.21.dist-info/RECORD,,
24
+ pycordviews-1.2.22.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
25
+ pycordviews-1.2.22.dist-info/METADATA,sha256=GPZ9sdMftBr4vTZmBtlLuXuXjNXjEGTNAyEDeVBAYx8,11947
26
+ pycordviews-1.2.22.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
27
+ pycordviews-1.2.22.dist-info/top_level.txt,sha256=3NvgH6MjESe7Q6jb6aqHgdYrYb5NhxwxnoDyE6PkThY,125
28
+ pycordviews-1.2.22.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5