hooke.ui.gui was getting complicated, so I stripped it down for a moment.
[hooke.git] / hooke / ui / gui / panel / playlist.py
index 524b0068a255bcaf2c8e73c478443e3d661b7e14..f0532641d6593616c2e78311ecd0beaa3e954a1d 100644 (file)
@@ -11,6 +11,7 @@ import types
 import wx\r
 \r
 from ....util.callback import callback, in_callback\r
+from . import Panel\r
 \r
 \r
 class Menu (wx.Menu):\r
@@ -269,7 +270,7 @@ class Tree (wx.TreeCtrl):
         return playlist_name\r
 \r
 \r
-class Playlist (wx.Panel):\r
+class Playlist (Panel, wx.Panel):\r
     """:class:`wx.Panel` subclass wrapper for :class:`Tree`.\r
     """\r
     def __init__(self, config, callbacks, *args, **kwargs):\r
@@ -292,6 +293,7 @@ class Playlist (wx.Panel):
         sizer.Fit(self)\r
 \r
         # Expose all Tree's public curve/playlist methods directly.\r
+        # Following DRY and the LoD.\r
         for attribute_name in dir(self._c['tree']):\r
             if (attribute_name.startswith('_')\r
                 or 'playlist' not in attribute_name\r