From 62752ddd2669df3a00bf54de4f3d5ad6836647eb Mon Sep 17 00:00:00 2001 From: Qua-non Date: Fri, 2 Mar 2012 03:01:00 +0530 Subject: [PATCH] Remove redundant `background_texture`, this also fixes updation of texture when background_image was changed. --- kivy/data/style.kv | 2 +- kivy/uix/bubble.py | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/kivy/data/style.kv b/kivy/data/style.kv index 86742f3b5..0c5920ad0 100644 --- a/kivy/data/style.kv +++ b/kivy/data/style.kv @@ -33,7 +33,7 @@ rgba: self.parent.background_color if self.parent else (1, 1, 1, 1) BorderImage: border: self.parent.border if self.parent else (16, 16, 16, 16) - texture: root.parent.background_texture if root.parent else None + texture: root.parent._bk_img.texture if root.parent else None size: self.size pos: self.pos diff --git a/kivy/uix/bubble.py b/kivy/uix/bubble.py index 519281152..71934751c 100644 --- a/kivy/uix/bubble.py +++ b/kivy/uix/bubble.py @@ -131,13 +131,6 @@ class Bubble(GridLayout): default to 'bottom_mid'. ''' - background_texture = ObjectProperty(None) - '''Specifies the background texture of the bubble - - :data:`background_texture` is a :class:`~kivy.properties.ObjectProperty`, - default to 'None'. - ''' - content = ObjectProperty(None) '''This is the object where the main content of the bubble is held @@ -165,12 +158,8 @@ class Bubble(GridLayout): self.content = content = BubbleContent(parent=self) super(Bubble, self).__init__(**kwargs) self.add_widget(content) - self._bk_img.bind(on_texture=self._on_texture) self.on_arrow_pos() - def _on_texture(self, *l): - self.background_texture = self._bk_img.texture - def add_widget(self, *l): content = self.content if content is None: