Re: [PyQt] How do you close a QDialog?

2009-04-07 Thread Demetrius Cassidy
> if __name__ == "__main__": > import sys > app = QtGui.QApplication(sys.argv) > Dialog = QtGui.QDialog() <-- don't do this > ui = action_select_dialog() > ui.setupUi(Dialog) <-- this should be inside __init__ > Dialog.show() <-- this should have been ui.show() instead. >

Re: [PyQt] How do you close a QDialog?

2009-04-07 Thread Demetrius Cassidy
GatorAlli wrote: > > I just want to quit the dialog, not the main application window. > > Can you post your code for the dialog? -- View this message in context: http://www.nabble.com/How-do-you-close-a-QDialog--tp22874235p22941476.html Sent from the PyQt mailing list archive at Nabble.com

Re: [PyQt] New Style emit without subclassing

2009-04-07 Thread Demetrius Cassidy
Small Typo.. Should be: self.emit(SIGNAL("itemClicked(QGraphicsSceneMouseEvent*)")) Demetrius Cassidy wrote: > > from PyQt4.QtCore import SIGNAL > > class MyScene(QtGui.QGraphicsScene): >def __init__(self,parent=None): > QtGui.QGraphicsScene.__init__(self,parent) >sel

Re: [PyQt] How do you close a QDialog?

2009-04-07 Thread Demetrius Cassidy
Do you mean quit the app? self.close should close the window. Otherwise you can always use sys.exit() if you want to quit the whole app instead of say close a dialog window. GatorAlli wrote: > > Come on! Somebody's got to know how to do this! > > -- View this message in context: http://ww

Re: [PyQt] New Style emit without subclassing

2009-04-07 Thread Demetrius Cassidy
from PyQt4.QtCore import SIGNAL class MyScene(QtGui.QGraphicsScene): def __init__(self,parent=None): QtGui.QGraphicsScene.__init__(self,parent) self.emit(SIGNAL(("itemClicked(QGraphicsSceneMouseEvent*)"))) - Original Message - From: "Matt Smith" To: Sent: Tue

[PyQt] New Style emit without subclassing

2009-04-07 Thread Matt Smith
I'm not clear on how to make an object emit a signal without subclassing, with the new style emits. ie, old style: myscene.emit( QtCore.SIGNAL("itemClicked(QGraphicsSceneMouseEvent*)" ,ev ) Where as if I subclass: class MyScene(QtGui.QGraphicsScene): touc

Re: [PyQt] Creating a message box

2009-04-07 Thread klia
klia wrote: > > Hey guys; > > i am totally new to pyqt > > My query is can some one give me an example that creates a button which > will display a message box once it's clicked > > thank you > Thank you for help -- View this message in context: http://www.nabble.com/Creating-a-message-

[PyQt] Question about QFrame

2009-04-07 Thread projetmbc
Hello, I would like to make a frame that contains a QTextEdit and a picture, and then I would like to show it. Is-it possible ? Best regards. Christophe. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/l

Re: [PyQt] Creating a message box

2009-04-07 Thread Sergio Daniel Gomez
klia escribió: Hey guys; i am totally new to pyqt My query is can some one give me an example that creates a button which will display a message box once it's clicked thank you #!/usr/bin/python # messagebox.py import sys from PyQt4 import QtGui class MessageBox(QtGui.QWidget): def _

[PyQt] Error for compile latest snapshot

2009-04-07 Thread Alexandr N Zamaraev
Os Windows Vista Home Ru + sp1 g++ (GCC) 3.4.5 (mingw-vista special r3) Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 sip-4.8-snapshot-20090401 PyQt-win-gpl-4.5-snapshot-20090403 [console snipped] C:/Lang/qt/PyQt-4.5>mingw32-make ... mingw32-make[1]: Ente

[PyQt] Creating a message box

2009-04-07 Thread klia
Hey guys; i am totally new to pyqt My query is can some one give me an example that creates a button which will display a message box once it's clicked thank you -- View this message in context: http://www.nabble.com/Creating-a-message-box-tp22922690p22922690.html Sent from the PyQt mailing l