666 # addbutton.SetToolTipString("Add a \"%s\" plugin to this one"%name) |
666 # addbutton.SetToolTipString("Add a \"%s\" plugin to this one"%name) |
667 # addbutton.Bind(wx.EVT_BUTTON, self._GetAddPluginFunction(name, plugin), id=addbutton_id) |
667 # addbutton.Bind(wx.EVT_BUTTON, self._GetAddPluginFunction(name, plugin), id=addbutton_id) |
668 # addsizer.AddWindow(addbutton, 0, border=0, flag=0) |
668 # addsizer.AddWindow(addbutton, 0, border=0, flag=0) |
669 # return addsizer |
669 # return addsizer |
670 |
670 |
671 normal_bt_font=wx.Font(faces["size"] / 3, wx.DEFAULT, wx.NORMAL, 0, faceName = faces["helv"]) |
671 normal_bt_font=wx.Font(faces["size"] / 3, wx.DEFAULT, wx.NORMAL, wx.NORMAL, faceName = faces["helv"]) |
672 mouseover_bt_font=wx.Font(faces["size"] / 3, wx.DEFAULT, wx.NORMAL, 0, underline=True, faceName = faces["helv"]) |
672 mouseover_bt_font=wx.Font(faces["size"] / 3, wx.DEFAULT, wx.NORMAL, wx.NORMAL, underline=True, faceName = faces["helv"]) |
673 def GenerateMethodButtonSizer(self, plugin, parent, horizontal = True): |
673 def GenerateMethodButtonSizer(self, plugin, parent, horizontal = True): |
674 if horizontal: |
674 if horizontal: |
675 msizer = wx.FlexGridSizer(cols=len(plugin.PluginMethods)) |
675 msizer = wx.FlexGridSizer(cols=len(plugin.PluginMethods)) |
676 else: |
676 else: |
677 msizer = wx.FlexGridSizer(cols=1) |
677 msizer = wx.FlexGridSizer(cols=1) |