Logo Search packages:      
Sourcecode: uicilibris version File versions  Download package

def uicilibris::waitDialog::spinWheelWaitDialog::__init__ (   self,
  parent = None,
  cbStop = None,
  title = None,
  closeButtonMsg = "" 
)
the constructor
@param parent a parent widget
@param cbStop a callback procedure to be called when the dialog is closed
@param title a title for the dialog window
@param closeButtonMsg a message to display on the button if the user is supposed to close the dialog explicitely upon completion. If this parameter is omitted, the dialog closes itself directly.

Definition at line 29 of file waitDialog.py.

                                                                               :
        """
        the constructor
        @param parent a parent widget
        @param cbStop a callback procedure to be called when the dialog is closed
        @param title a title for the dialog window
        @param closeButtonMsg a message to display on the button if the user is supposed to close the dialog explicitely upon completion. If this parameter is omitted, the dialog closes itself directly.
        """
        QDialog.__init__(self, parent)
        if title != None:
            self.setWindowTitle(title)
        self.closeButtonMsg=closeButtonMsg
        hLayout=QHBoxLayout()
        self.dial=QDial(self)
        self.dial.setMinimum(0)
        self.dial.setMaximum(100)
        hLayout.addWidget(self.dial)
        self.button=QPushButton("Cancel", self)
        self.connect(self.button, SIGNAL("clicked()"), self.close)
        if cbStop != None:
            self.connect(self, SIGNAL("spwDialogClosed"), cbStop)
        hLayout.addWidget(self.button)
        self.dialPos=0
        self.timer=dialTimer(self,self.dial)
        self.connect(self.timer, SIGNAL("timeout()"), self.animateLcDial)
        self.timer.start()
        self.setLayout(hLayout)


Generated by  Doxygen 1.6.0   Back to index