--- a/.hgignore Fri Sep 09 17:57:36 2016 +0300
+++ b/.hgignore Mon Sep 12 10:15:39 2016 +0500
@@ -2,6 +2,7 @@
syntax: regexp
^tests/.*/build$
+^.idea/.*
syntax: regexp
^.*\.pyc$
syntax: regexp
--- a/controls/LibraryPanel.py Fri Sep 09 17:57:36 2016 +0300
+++ b/controls/LibraryPanel.py Mon Sep 12 10:15:39 2016 +0500
@@ -67,8 +67,12 @@
self.OnSearchButtonClick, self.SearchCtrl)
# Bind keyboard event on SearchCtrl text control to catch UP and DOWN
# for search previous and next occurrence
- search_textctrl = self.SearchCtrl.GetChildren()[0]
- search_textctrl.Bind(wx.EVT_CHAR, self.OnKeyDown)
+
+ # This protects from fail to start when no children[0] available (possible for wxPython 3.0)
+ if self.SearchCtrl.GetChildren():
+ search_textctrl = self.SearchCtrl.GetChildren()[0]
+ search_textctrl.Bind(wx.EVT_CHAR, self.OnKeyDown)
+
main_sizer.AddWindow(self.SearchCtrl, flag=wx.GROW)
# Add Splitter window for tree and block comment to main sizer