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

node.js - StackOverflow API not returning JSON -

ios - Apple Push Notifications + TestFlight + Enterprise wildcard provisioning profile -

android - Drag and drop in ScrollView -