From 7918988bee68b0918e1fc21bad75418779bbb817 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 10 Aug 2010 16:15:50 -0400 Subject: [PATCH] Fix tree method exposure in playlist GUI pansl --- hooke/ui/gui/panel/playlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooke/ui/gui/panel/playlist.py b/hooke/ui/gui/panel/playlist.py index c50da0b..fd46d2d 100644 --- a/hooke/ui/gui/panel/playlist.py +++ b/hooke/ui/gui/panel/playlist.py @@ -359,8 +359,8 @@ class Playlist (Panel, wx.Panel): # Following DRY and the LoD. for attribute_name in dir(self._c['tree']): if (attribute_name.startswith('_') - or 'playlist' not in attribute_name - or 'curve' not in attribute_name): + or ('playlist' not in attribute_name + and 'curve' not in attribute_name)): continue # not an attribute we're interested in attr = getattr(self._c['tree'], attribute_name) if hasattr(attr, '__call__'): # attr is a function / method -- 2.26.2