Can you pull the table name out of the event object? Another option
is to make a unique function for each table, which calls the addFriend
function itself with the table name. That way you won't have to
duplicate addFriend code.
example:
addFriend(event, table):
def
That looks like the default button that has focus if you were to hit
Enter sending an event to that button. Like if you were to hit tab,
the second button would receive the focus. You can check if the
button has focus by calling hasFocus() or clearing it by calling
clearFocus(). That should
QToolbarButton has a value for putting text underneath, which may be
more what you want.
On Tue, Aug 16, 2011 at 3:20 PM, uahmed gleam.uah...@gmail.com wrote:
HI
I want to do alignment inĀ image and text , i want that image should be on
center top and text should be at the bottom of image . I
:
Hi
Thanks for the reply yes it is like thatĀ When i press tab it moves to next
button but When i use this command
print close.hasFocus()
It prints False , Does it indicate that it dont have Focus ?
Thank You
On Wed, Aug 17, 2011 at 3:26 AM, Josh Stratton strattonbra...@gmail.com
wrote
I'm getting type errors sending a QMatrixr4x4 to a QGLShaderProgram.
The program was taken from a C++ version of comparable code, but I'm
assuming I need to do something more on the pyqt side to get the value
passed over correctly?
objToWorld = QMatrix4x4()
flatShader.setUniformValue(objToWorld,
13:14:20 -0700, Josh Stratton
strattonbra...@gmail.com wrote:
I'm getting type errors sending a QMatrixr4x4 to a QGLShaderProgram.
The program was taken from a C++ version of comparable code, but I'm
assuming I need to do something more on the pyqt side to get the value
passed over correctly
Is it possible to add qt widgets from a cmodule to a pyqt class?
For example if I have a widget MyWidget in mytest.so,
from pyqt import *
import mytest
widget = mytest.MyWidget() # C++ qt widget
window = QtGui.QMainWindow()
window.setCentralWidget(widget) # put C++ widget in pyqt widget
Is there an example of that somewhere? Is that on the python side or
the C++ side? Does that mean I cannot use boost::python and need to
switch to SIP?
On Thu, Aug 11, 2011 at 9:10 AM, Phil Thompson
p...@riverbankcomputing.com wrote:
On Thu, 11 Aug 2011 08:48:20 -0700, Josh Stratton