Pyqt5 实现跳转界面并关闭当前界面的方法
作者:无限未来16 时间:2023-02-02 13:59:19
网上大部分教程都写的直接关闭界面,我摸索出来一个方法:同时绑定两个事件
例:
#自己方法
self.registerButton.clicked.connect(self.register_re)
#关闭界面
self.registerButton.clicked.connect(login.close)
代码顺序代表进行顺序,上例先运行自己函数,再关闭当前窗口。
来源:https://blog.csdn.net/Eric1640/article/details/84035859
标签:Pyqt5,跳转,界面,关闭
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python实现数值积分的Simpson方法实例分析
2023-08-01 17:35:01
浅谈tensorflow模型保存为pb的各种姿势
2023-02-01 21:19:05
![](https://img.aspxhome.com/file/2023/4/124154_0s.jpg)
python实现输出一个序列的所有子序列示例
2022-04-13 18:34:45
![](https://img.aspxhome.com/file/2023/5/121845_0s.jpg)
MySQL批量更新的四种方式总结
2024-01-13 17:53:08
使用Python-OpenCV向图片添加噪声的实现(高斯噪声、椒盐噪声)
2023-07-01 06:32:45
mysql 5.7.21 winx64免安装版配置方法图文教程
2024-01-23 17:16:13
![](https://img.aspxhome.com/file/2023/5/97575_0s.jpg)
vue+elementui+vuex+sessionStorage实现历史标签菜单的示例代码
2024-04-30 10:26:30
![](https://img.aspxhome.com/file/2023/8/130208_0s.png)
PHP 修复未正常关闭的HTML标签实现代码(支持嵌套和就近闭合)
2024-04-28 09:44:51
深入理解golang的异常处理机制
2024-02-04 10:02:37
pytorch VGG11识别cifar10数据集(训练+预测单张输入图片操作)
2021-10-22 21:55:52
![](https://img.aspxhome.com/file/2023/0/87510_0s.jpg)
把pandas转换int型为str型的方法
2022-02-16 15:45:03
Django使用paginator插件实现翻页功能的实例
2023-09-06 05:23:19
Python切片知识解析
2022-06-07 06:31:58
python导入导出redis数据的实现
2023-02-24 11:10:55
一篇文章带你了解python正则表达式的正确用法
2023-01-05 19:20:30
![](https://img.aspxhome.com/file/2023/6/133806_0s.png)
打包发布Python模块的方法详解
2021-04-03 06:10:56
python实现自动整理文件
2021-03-04 14:15:46
![](https://img.aspxhome.com/file/2023/4/128734_0s.png)
Python变量基础知识
2021-10-11 02:13:12
Python中asyncio模块的深入讲解
2022-05-18 22:33:53
Asp.net实现简单的文字水印
2007-08-24 09:28:00