pyShelf Open Source Ebook Server  0.1.0
Open source, console based E-book server
Public Member Functions | Public Attributes | List of all members
app.lib.pyShelf.BookDisplay Class Reference

Public Member Functions

def __init__ (self)
 
def nextPage (self)
 
def previousPage (self)
 
def booksPerPage (self, screen_size)
 

Public Attributes

 books_per_page
 
 current_page
 
 thumbnail_size
 
 thumbnail_scale
 
 total_pages
 

Detailed Description

All functions related to displaying book information in the HTML UI

Constructor & Destructor Documentation

◆ __init__()

def app.lib.pyShelf.BookDisplay.__init__ (   self)
Initialize class variables
:return: None

Member Function Documentation

◆ booksPerPage()

def app.lib.pyShelf.BookDisplay.booksPerPage (   self,
  screen_size 
)
Set books per page

:param screen_size: Array containing x,y pixel sizes
:return: self.books_per_page

◆ nextPage()

def app.lib.pyShelf.BookDisplay.nextPage (   self)
Goto next book page
:return: new current_page

◆ previousPage()

def app.lib.pyShelf.BookDisplay.previousPage (   self)
Goto previous book page
:return: new current_page

The documentation for this class was generated from the following file: