corrected absolute imports
This commit is contained in:
parent
33a36e1377
commit
d730bb4f13
@ -1,5 +1,10 @@
|
|||||||
from inkycal.modules.inkycal_agenda import agenda
|
from inkycal.config import layout
|
||||||
from inkycal.modules.inkycal_calendar import calendar
|
from inkycal.config import settings_parser
|
||||||
from inkycal.modules.inkycal_weather import weather
|
|
||||||
from inkycal.modules.inkycal_rss import rss
|
|
||||||
|
import inkycal.modules.inkycal_agenda
|
||||||
|
import inkycal.modules.inkycal_calendar
|
||||||
|
import inkycal.modules.inkycal_weather
|
||||||
|
import inkycal.modules.inkycal_rss
|
||||||
|
#import inkycal.modules.inkycal_image
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
from .settings_parser import settings
|
from .settings_parser import Settings
|
||||||
from .layout import layout
|
from .layout import Layout
|
||||||
|
@ -12,7 +12,7 @@ filename = os.path.basename(__file__).split('.py')[0]
|
|||||||
logger = logging.getLogger(filename)
|
logger = logging.getLogger(filename)
|
||||||
logger.setLevel(level=logging.INFO)
|
logger.setLevel(level=logging.INFO)
|
||||||
|
|
||||||
class layout:
|
class Layout:
|
||||||
"""Page layout handling"""
|
"""Page layout handling"""
|
||||||
|
|
||||||
def __init__(self, model=None, width=None, height=None,
|
def __init__(self, model=None, width=None, height=None,
|
||||||
@ -77,12 +77,12 @@ class layout:
|
|||||||
self.bottom_section_height = (self.display_height -
|
self.bottom_section_height = (self.display_height -
|
||||||
self.top_section_height - self.middle_section_height)
|
self.top_section_height - self.middle_section_height)
|
||||||
|
|
||||||
logger.debug('top-section size: {} x {} px'.format(
|
logger.debug(('top-section size: {} x {} px'.format(
|
||||||
self.top_section_width, self.top_section_height))
|
self.top_section_width, self.top_section_height)))
|
||||||
logger.debug('middle-section size: {} x {} px'.format(
|
logger.debug(('middle-section size: {} x {} px'.format(
|
||||||
self.middle_section_width, self.middle_section_height))
|
self.middle_section_width, self.middle_section_height)))
|
||||||
logger.debug('bottom-section size: {} x {} px'.format(
|
logger.debug(('bottom-section size: {} x {} px'.format(
|
||||||
self.bottom_section_width, self.bottom_section_height))
|
self.bottom_section_width, self.bottom_section_height)))
|
||||||
|
|
||||||
|
|
||||||
def get_size(self, section):
|
def get_size(self, section):
|
||||||
|
Loading…
Reference in New Issue
Block a user