# size=wx.Size(150, 90),\r
# style=wx.NO_BORDER|wx.TE_MULTILINE), 'right'),\r
('output', panel.PANELS['output'](\r
- buffer_lines=5,\r
parent=self,\r
pos=wx.Point(0, 0),\r
size=wx.Size(150, 90),\r
# Command panel interface\r
\r
def select_command(self, _class, method, command):\r
+ return\r
self.select_plugin(plugin=command.plugin)\r
plugin = self.GetItemText(selected_item)\r
if plugin != 'core':\r
in_callback(self, command)\r
\r
def execute(self):\r
- item = self.GetSelection()\r
- if item.IsOk():\r
- if not self.ItemHasChildren(item):\r
- item_text = self.GetItemText(item)\r
- # TODO: generate args\r
- in_callback(self, command, args)\r
+ _id = self.GetSelection()\r
+ name = self._name_for_id[self._canonical_id(_id)]\r
+ if self._is_command(name):\r
+ command = self._commands[name]\r
+ args = {} # TODO: generate args\r
+ in_callback(self, command, args)\r
\r
\r
class CommandsPanel (Panel, wx.Panel):\r