Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpms / usr / share / fpms / BakeBit / Software / Python / modules / pages / display.py
Size: Mime:
from modules.constants import (
    PAGE_HEIGHT,
    PAGE_WIDTH,
)

#################################
# Display functions
#################################

class Display(object):

    def __init__(self, g_vars):
        pass

    def clear_display(self, g_vars):

        '''
        Paint display black prior to painting new page
        '''

        # Draw a black filled box to clear the display.
        g_vars['draw'].rectangle((0, 0, PAGE_WIDTH, PAGE_HEIGHT), outline=0, fill=0)

        return