This commit is contained in:
yumoqing 2021-06-21 16:39:32 +08:00
parent 6944988b91
commit 5001f26112

View File

@ -20,7 +20,7 @@ class WidgetCSS(object):
bg_func = Rectangle bg_func = Rectangle
def on_canvas(self, o, s): def on_canvas(self, o, s):
Logger.info('WidgetCSS:on_canvas():%s',self.__class__.__name__) #Logger.info('WidgetCSS:on_canvas():%s',self.__class__.__name__)
self.set_background_color() self.set_background_color()
def on_size(self, o, s): def on_size(self, o, s):
@ -91,8 +91,8 @@ class WidgetCSS(object):
self.set_child_fgcolor(c) self.set_child_fgcolor(c)
def on_fgcolor(self, o, c): def on_fgcolor(self, o, c):
Logger.info('WidgetCSS:on_fgcolor:%s fgcolor=%s', self.__class__.__name__, #Logger.info('WidgetCSS:on_fgcolor:%s fgcolor=%s', self.__class__.__name__,
self.fgcolor) # self.fgcolor)
if not self.fgcolor: if not self.fgcolor:
return return
if isinstance(self, TextInput): if isinstance(self, TextInput):
@ -105,8 +105,8 @@ class WidgetCSS(object):
return return
def on_bgcolor(self, o, c): def on_bgcolor(self, o, c):
Logger.info('WidgetCSS:on_bgcolor:%s bgcolor=%s', self.__class__.__name__, #Logger.info('WidgetCSS:on_bgcolor:%s bgcolor=%s', self.__class__.__name__,
self.bgcolor) # self.bgcolor)
if not self.bgcolor: if not self.bgcolor:
return return
if isinstance(self, TextInput): if isinstance(self, TextInput):
@ -126,8 +126,8 @@ class WidgetCSS(object):
def set_background_color(self, *args): def set_background_color(self, *args):
if not self.bgcolor: if not self.bgcolor:
Logger.info('WidgetCSS: set_bg_color(), bgcolor is null, (%s)', #Logger.info('WidgetCSS: set_bg_color(), bgcolor is null, (%s)',
self.__class__.__name__) # self.__class__.__name__)
return return
if not self.canvas: if not self.canvas:
Logger.info('WidgetCSS: set_bg_color(), canvas is null(%s)', Logger.info('WidgetCSS: set_bg_color(), canvas is null(%s)',