コード例 #1
0
 def focusInEvent(self, *args, **kwargs):
     """
     Sets the initial value on re-enter event.  This is mainly valid for
     ladder widgets?
     """
     self.setOrigValue(self.text())
     return QLineEdit.focusInEvent(self, *args, **kwargs)
コード例 #2
0
ファイル: vim_widget.py プロジェクト: Nodd/spyder.vim
 def focusInEvent(self, event):
     QLineEdit.focusInEvent(self, event)
     self.parent().update_vim_cursor()
     self.clear()
コード例 #3
0
 def focusInEvent(self, focus_event):
     QLineEdit.focusInEvent(self, focus_event)
     self.hidePlaceHolder()
コード例 #4
0
ファイル: vim_widget.py プロジェクト: CermakM/spyder-vim
 def focusInEvent(self, event):
     """Enter command mode."""
     QLineEdit.focusInEvent(self, event)
     self.parent().vim_keys.h()
     self.clear()
コード例 #5
0
ファイル: vim_widget.py プロジェクト: spyder-ide/spyder.vim
 def focusInEvent(self, event):
     """Enter command mode."""
     QLineEdit.focusInEvent(self, event)
     self.parent().vim_keys.h()
     self.clear()
コード例 #6
0
ファイル: searchbox.py プロジェクト: oyvindeide/ert
 def focusInEvent(self, focus_event):
     QLineEdit.focusInEvent(self, focus_event)
     self.enterSearch()
コード例 #7
0
 def focusInEvent(self, event):
     QLineEdit.focusInEvent(self, event)
     self.parent().update_vim_cursor()
     self.clear()
コード例 #8
0
ファイル: common.py プロジェクト: zbhfut/pyNastran
 def focusInEvent(self, event):
     self.on_focus()
     QLineEdit.focusInEvent(self, QFocusEvent(QtCore.QEvent.FocusIn))
コード例 #9
0
ファイル: vim_widget.py プロジェクト: pwoosam/spyder-vim
 def focusInEvent(self, event):
     QLineEdit.focusInEvent(self, event)
     self.parent().vim_keys.h()
     self.clear()