[PyQt] GUI Designing query
tom at sobota.net
Sat Jan 11 17:17:22 GMT 2014
What I do is capture the close event in the MainWindow class. Like this:
def closeEvent(self, event):
"My App Name",
self.trUtf8("Do you really want to exit the program?"),
QMessageBox.Yes|QMessageBox.No) == QMessageBox.No:
In your case the logic will be different but this is the event that you
On Sat, Jan 11, 2014 at 2:18 PM, Pankaj Gupta <pankaj at gaurishiv.org> wrote:
> Hi all,
> I am very new to PyQt. As per the requirement I have to disable panel
> close button appears on the GUI at right top most corner. the user must
> close the GUI by clicking the push button available on the GUI.
> There are two options I have either I can disable the panel close button
> during the design time or else I can develop a code to shut down the system
> for panel close event. but I am not able to find out both the options. I
> am not able to disable panel close button at design time or even I am not
> able to figure out how to track panel close event.
> Please give me your valuable suggestion for this..
> Thanks in advance
> Thanks with Regards:
> cell: *+91-9035486588 <%2B91-9035486588>*
> PyQt mailing list PyQt at riverbankcomputing.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt