How to make QtGui.QPushButton() current? -


i make button created

mybutton = qtgui.qpushbutton() 

active (so if user hits enter keyboard key button pressed). on osx can see dialog box button in such 'active' state because colored in light blue ( , there form of "glowing=swimming" animation going on). attribute needs set make button current?

try this:

mybutton.setdefault(true) mybutton.setfocus() 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -