From 487803334f59e76a15bb3dc4026afe443a2a26c2 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Sun, 20 Apr 2014 14:14:12 +0100 Subject: [PATCH] Simplified second effectwidget example --- examples/widgets/effectwidget2.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/widgets/effectwidget2.py b/examples/widgets/effectwidget2.py index f929251c2..cd9701ba2 100644 --- a/examples/widgets/effectwidget2.py +++ b/examples/widgets/effectwidget2.py @@ -21,15 +21,9 @@ vec4 effect(vec4 color, sampler2D texture, vec2 tex_coords, vec2 coords) ''' -class NewEffect(EffectBase): - def __init__(self, *args, **kwargs): - super(NewEffect, self).__init__(*args, **kwargs) - self.glsl = effect_string - - class DemoEffect(EffectWidget): def __init__(self, *args, **kwargs): - self.effect_reference = NewEffect() + self.effect_reference = EffectBase(glsl=effect_string) super(DemoEffect, self).__init__(*args, **kwargs)