[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Functional test on an QAction with QtTest module
From:       "Sabrina Demagny" <sabrina.demagny () gmail ! com>
Date:       2007-05-30 10:14:59
Message-ID: d598b63e0705300314j70e06c0clf0ad4fad93cac04f () mail ! gmail ! com
[Download RAW message or body]

Hi,

I try to implement test with QtTest module on my interface which
contents a menu bar and a tool bar. I implement the GUI access to the
function "new" with a QAction:
	
	self.new = QtGui.QAction(QtGui.QIcon("new.png"), self.tr("&New"),self)


I create a menu bar and a tool bar and add the QAction:

self.fileMenu = self.menuBar().addMenu(self.tr("&File"))
self.fileMenu.addAction(self.new)

fileToolBar = self.addToolBar(self.tr("File"))
fileToolBar.addAction(self.new)


Can somebody tell me how to simulate an user mouse click on QtGui.QAction ?

Thanks once again for your help.

Sabrina.
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic