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.
- pycordViews/pagination/pagination_view.py +6 -6
- {pycordviews-1.2.21.dist-info → pycordviews-1.2.22.dist-info}/METADATA +1 -1
- {pycordviews-1.2.21.dist-info → pycordviews-1.2.22.dist-info}/RECORD +6 -6
- {pycordviews-1.2.21.dist-info → pycordviews-1.2.22.dist-info}/WHEEL +1 -1
- {pycordviews-1.2.21.dist-info → pycordviews-1.2.22.dist-info}/licenses/LICENSE +0 -0
- {pycordviews-1.2.21.dist-info → pycordviews-1.2.22.dist-info}/top_level.txt +0 -0
@@ -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=
|
26
|
-
self.__view.add_items(Button(label='◀', row=
|
27
|
-
self.__view.add_items(Button(label='None', row=
|
28
|
-
self.__view.add_items(Button(label='▶', row=
|
29
|
-
self.__view.add_items(Button(label='⏭', row=
|
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] = []
|
@@ -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=
|
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.
|
25
|
-
pycordviews-1.2.
|
26
|
-
pycordviews-1.2.
|
27
|
-
pycordviews-1.2.
|
28
|
-
pycordviews-1.2.
|
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,,
|
File without changes
|
File without changes
|