hooke.ui.gui was getting complicated, so I stripped it down for a moment.
[hooke.git] / hooke / ui / gui / panel / note.py
index 4df7db827f057ff9cb3277e13cff5a46fd449f80..7dc68480484e79bc8cc8dd9ffc447685b85d1edd 100644 (file)
@@ -5,10 +5,12 @@
 \r
 import wx\r
 \r
-class Note(wx.Panel):\r
+from . import Panel\r
 \r
-    def __init__(self, parent):\r
-        wx.Panel.__init__(self, parent, -1, style=wx.WANTS_CHARS|wx.NO_BORDER, size=(160, 200))\r
+\r
+class NotePanel (Panel, wx.Panel):\r
+    def __init__(self, callbacks=None, **kwargs):\r
+        super(Note, self).__init__(name='note', callbacks=callbacks, **kwargs)\r
 \r
         self.Editor = wx.TextCtrl(self, style=wx.TE_MULTILINE)\r
 \r