corrected absolute imports

This commit is contained in:
Ace 2020-05-26 19:16:40 +02:00
parent 33a36e1377
commit d730bb4f13
3 changed files with 18 additions and 13 deletions

View File

@ -1,5 +1,10 @@
from inkycal.modules.inkycal_agenda import agenda
from inkycal.modules.inkycal_calendar import calendar
from inkycal.modules.inkycal_weather import weather
from inkycal.modules.inkycal_rss import rss
from inkycal.config import layout
from inkycal.config import settings_parser
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

View File

@ -1,2 +1,2 @@
from .settings_parser import settings
from .layout import layout
from .settings_parser import Settings
from .layout import Layout

View File

@ -12,7 +12,7 @@ filename = os.path.basename(__file__).split('.py')[0]
logger = logging.getLogger(filename)
logger.setLevel(level=logging.INFO)
class layout:
class Layout:
"""Page layout handling"""
def __init__(self, model=None, width=None, height=None,
@ -77,12 +77,12 @@ class layout:
self.bottom_section_height = (self.display_height -
self.top_section_height - self.middle_section_height)
logger.debug('top-section size: {} x {} px'.format(
self.top_section_width, self.top_section_height))
logger.debug('middle-section size: {} x {} px'.format(
self.middle_section_width, self.middle_section_height))
logger.debug('bottom-section size: {} x {} px'.format(
self.bottom_section_width, self.bottom_section_height))
logger.debug(('top-section size: {} x {} px'.format(
self.top_section_width, self.top_section_height)))
logger.debug(('middle-section size: {} x {} px'.format(
self.middle_section_width, self.middle_section_height)))
logger.debug(('bottom-section size: {} x {} px'.format(
self.bottom_section_width, self.bottom_section_height)))
def get_size(self, section):