Popular recipes tagged "pagination" but not "text"http://code.activestate.com/recipes/tags/pagination-text/2017-05-01T20:34:49-07:00ActiveState Code RecipesPagination widget in Tkinter (Python) 2017-05-01T20:34:49-07:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580720-pagination-widget-in-tkinter/ <p style="color: grey"> Python recipe 580720 by <a href="/recipes/users/4189907/">Miguel Martínez López</a> (<a href="/recipes/tags/megawidget/">megawidget</a>, <a href="/recipes/tags/pagination/">pagination</a>, <a href="/recipes/tags/tkinter/">tkinter</a>). Revision 24. </p> <p>I added here a pagination widget in tkinter with different styles.</p> <p>When this option <em>"hide_controls_at_edge"</em> is true, the widget hides <em>"next"</em>, <em>"previous"</em>, <em>"last"</em> and <em>"first"</em> buttons when they are not necessary. For example when pagination is at the first page then the buttons <em>"previous"</em> and <em>"first"</em> are not strictly necessary. Analogously when pagination is at the last page, the buttons <em>"last"</em> and <em>"next"</em> are not necessary because its not possible to go more forward.</p> <p>The user can customize the text of <em>"next"</em>, <em>"previous"</em>, <em>"last"</em> and <em>"first"</em> buttons. When some of these options is None, then the corresponding button is not showed: <em>prev_button</em>. <em>next_button</em>, <em>first_button</em>, <em>last_button</em></p> <p>The <em>"command"</em> option is a callback called every time a page is selected.</p>