Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

settings: use timer to acquire focus

Seems to be the only way to reliably set the initial focus in a widget that
is being constructed.

Changeset 5f014a8d6fab

Parent 279d17edbbc7

by Steve Borho

Changes to one file · Browse files at 5f014a8d6fab Showing diff from parent 279d17edbbc7 Diff from another changeset...

 
633
634
635
636
 
 
637
638
639
 
633
634
635
 
636
637
638
639
640
@@ -633,7 +633,8 @@
  for n, (label, cpath, values, tip) in enumerate(info):   if cpath == focusfield:   self.pageList.setCurrentRow(i) - self.pages[meta['name']][1][n].setFocus() + QTimer.singleShot(0, lambda: \ + self.pages[meta['name']][1][n].setFocus())   return     def fillFrame(self, info):