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

List:       pykde
Subject:    [PyQt] PyQt 4 modeless dialog issue
From:       Stephen Funkhouser <stephen () ddssoft ! com>
Date:       2013-10-18 15:21:52
Message-ID: 52615210.3010000 () ddssoft ! com
[Download RAW message or body]

I'm trying to use a dialog created with QtDesigner as a modeless
dialog.  The problem I'm having is that when I use the .show() method to
display the dialog modeless it creates the dialog but it doesn't create
the label on the dialog. 

I've tested it as a modal dialog using .exec_() and the label is
displayed properly.


import ConverterWindowPacifierDialogUI
from PyQt4 import QtCore,QtGui

# Create a class for A-Shell Code Generator Dialog Single
class PacifierDialog(QtGui.QDialog):
    """
        pass
    """
    def __init__(self, parent=None):
        super(PacifierDialog, self).__init__(parent)
       
        # This is always the same
        self.ui=ConverterWindowPacifierDialogUI.Ui_DialogPacifier()
        self.ui.setupUi(self)

if __name__ == "__main__":
    import sys
    from PyQt4.QtGui import QApplication
    app = QApplication(sys.argv)
    dlg = PacifierDialog()
    dlg.show()

    # sleep to verify the display of the dialog
    from time import sleep
    sleep(2)

-- 
Stephen Funkhouser
Diversified Data Solutions, Inc.
(775) 238-3865 Google Voice

_______________________________________________
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