bugfix
This commit is contained in:
parent
6944988b91
commit
5001f26112
@ -20,7 +20,7 @@ class WidgetCSS(object):
|
||||
bg_func = Rectangle
|
||||
|
||||
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()
|
||||
|
||||
def on_size(self, o, s):
|
||||
@ -91,8 +91,8 @@ class WidgetCSS(object):
|
||||
self.set_child_fgcolor(c)
|
||||
|
||||
def on_fgcolor(self, o, c):
|
||||
Logger.info('WidgetCSS:on_fgcolor:%s fgcolor=%s', self.__class__.__name__,
|
||||
self.fgcolor)
|
||||
#Logger.info('WidgetCSS:on_fgcolor:%s fgcolor=%s', self.__class__.__name__,
|
||||
# self.fgcolor)
|
||||
if not self.fgcolor:
|
||||
return
|
||||
if isinstance(self, TextInput):
|
||||
@ -105,8 +105,8 @@ class WidgetCSS(object):
|
||||
return
|
||||
|
||||
def on_bgcolor(self, o, c):
|
||||
Logger.info('WidgetCSS:on_bgcolor:%s bgcolor=%s', self.__class__.__name__,
|
||||
self.bgcolor)
|
||||
#Logger.info('WidgetCSS:on_bgcolor:%s bgcolor=%s', self.__class__.__name__,
|
||||
# self.bgcolor)
|
||||
if not self.bgcolor:
|
||||
return
|
||||
if isinstance(self, TextInput):
|
||||
@ -126,8 +126,8 @@ class WidgetCSS(object):
|
||||
|
||||
def set_background_color(self, *args):
|
||||
if not self.bgcolor:
|
||||
Logger.info('WidgetCSS: set_bg_color(), bgcolor is null, (%s)',
|
||||
self.__class__.__name__)
|
||||
#Logger.info('WidgetCSS: set_bg_color(), bgcolor is null, (%s)',
|
||||
# self.__class__.__name__)
|
||||
return
|
||||
if not self.canvas:
|
||||
Logger.info('WidgetCSS: set_bg_color(), canvas is null(%s)',
|
||||
|
Loading…
Reference in New Issue
Block a user