1. Chaiwat Suttipongsakul
  2. boa-constructor

Commits

riaan  committed 7373977

Forced focus of explorer list when switching to Open Editor files

  • Participants
  • Parent commits 8517dd4
  • Branches default

Comments (0)

Files changed (1)

File Editor.py

View file
  • Ignore whitespace
 ##            while child.IsOk() and tree.GetItemText(child) != 'Editor':
 ##                child, cookie = tree.GetNextChild(node, cookie)
             tree.SelectItem(child)
+            self.explorer.list.SetFocus()
+            STATE = wxLIST_STATE_FOCUSED|wxLIST_STATE_SELECTED
+            self.explorer.list.SetItemState(0, STATE, STATE)
+
         else:
             self.tabs.SetSelection(1)