flag的具体用法python_Python Qt.WindowFlags方法代码示例
# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowFlags [as 别名]
def updatePreview(self):
flags = Qt.WindowFlags()
if self.windowRadioButton.isChecked():
flags = Qt.Window
elif self.dialogRadioButton.isChecked():
flags = Qt.Dialog
elif self.sheetRadioButton.isChecked():
flags = Qt.Sheet
elif self.drawerRadioButton.isChecked():
flags = Qt.Drawer
elif self.popupRadioButton.isChecked():
flags = Qt.Popup
elif self.toolRadioButton.isChecked():
flags = Qt.Tool
elif self.toolTipRadioButton.isChecked():
flags = Qt.ToolTip
elif self.splashScreenRadioButton.isChecked():
flags = Qt.SplashScreen
if self.msWindowsFixedSizeDialogCheckBox.isChecked():
flags |= Qt.MSWindowsFixedSizeDialogHint
if self.x11BypassWindowManagerCheckBox.isChecked():
flags |= Qt.X11BypassWindowManagerHint
if self.framelessWindowCheckBox.isChecked():
flags |= Qt.FramelessWindowHint
if self.windowTitleCheckBox.isChecked():
flags |= Qt.WindowTitleHint
if self.windowSystemMenuCheckBox.isChecked():
flags |= Qt.WindowSystemMenuHint
if self.windowMinimizeButtonCheckBox.isChecked():
flags |= Qt.WindowMinimizeButtonHint
if self.windowMaximizeButtonCheckBox.isChecked():
flags |= Qt.WindowMaximizeButtonHint
if self.windowCloseButtonCheckBox.isChecked():
flags |= Qt.WindowCloseButtonHint
if self.windowContextHelpButtonCheckBox.isChecked():
flags |= Qt.WindowContextHelpButtonHint
if self.windowShadeButtonCheckBox.isChecked():
flags |= Qt.WindowShadeButtonHint
if self.windowStaysOnTopCheckBox.isChecked():
flags |= Qt.WindowStaysOnTopHint
if self.windowStaysOnBottomCheckBox.isChecked():
flags |= Qt.WindowStaysOnBottomHint
if self.customizeWindowHintCheckBox.isChecked():
flags |= Qt.CustomizeWindowHint
self.previewWindow.setWindowFlags(flags)
pos = self.previewWindow.pos()
if pos.x() < 0:
pos.setX(0)
if pos.y() < 0:
pos.setY(0)
self.previewWindow.move(pos)
self.previewWindow.show()
flag的具体用法python_Python Qt.WindowFlags方法代码示例相关推荐
- python end用法_Python turtle.end_fill方法代码示例
本文整理汇总了Python中turtle.end_fill方法的典型用法代码示例.如果您正苦于以下问题:Python turtle.end_fill方法的具体用法?Python turtle.end_ ...
- java secretkey用法_Java SecretKeyFactory.generateSecret方法代码示例
本文整理汇总了Java中javax.crypto.SecretKeyFactory.generateSecret方法的典型用法代码示例.如果您正苦于以下问题:Java SecretKeyFactory ...
- python中stringvar的用法_Python tkinter.StringVar方法代码示例
本文整理汇总了Python中tkinter.StringVar方法的典型用法代码示例.如果您正苦于以下问题:Python tkinter.StringVar方法的具体用法?Python tkinter ...
- python中formatter的用法_Python pyplot.FuncFormatter方法代码示例
本文整理汇总了Python中matplotlib.pyplot.FuncFormatter方法的典型用法代码示例.如果您正苦于以下问题:Python pyplot.FuncFormatter方法的具体 ...
- python geometry用法_Python geometry.MultiPolygon方法代码示例
本文整理汇总了Python中shapely.geometry.MultiPolygon方法的典型用法代码示例.如果您正苦于以下问题:Python geometry.MultiPolygon方法的具体用 ...
- python中geometry用法_Python geometry.Point方法代码示例
本文整理汇总了Python中shapely.geometry.Point方法的典型用法代码示例.如果您正苦于以下问题:Python geometry.Point方法的具体用法?Python geome ...
- python中bind的用法_Python socket.bind方法代码示例
本文整理汇总了Python中socket.bind方法的典型用法代码示例.如果您正苦于以下问题:Python socket.bind方法的具体用法?Python socket.bind怎么用?Pyth ...
- python中font的用法_Python font.nametofont方法代码示例
本文整理汇总了Python中tkinter.font.nametofont方法的典型用法代码示例.如果您正苦于以下问题:Python font.nametofont方法的具体用法?Python fon ...
- orm设置bool型 python_Python orm.relationship方法代码示例
本文整理汇总了Python中sqlalchemy.orm.relationship方法的典型用法代码示例.如果您正苦于以下问题:Python orm.relationship方法的具体用法?Pytho ...
最新文章
- 草履虫纳米机器人_激光驱动的机器人大军!Nature:机器人尺寸小于 0.1 毫米,4 英寸晶圆可容纳 100 万个...
- android官方架构room,Android 官方架构组件介绍之 Room(翻译)
- 记录Nginx模块开发
- Unity中Oculus分屏相机和普通相机一键切换
- 你不知道的RabbitMQ集群架构全解
- c#使用zlib.net压缩解压byte数组
- sql机器学习服务_机器学习服务–在SQL Server中配置R服务
- Hadoop大数据生态组件环境安装
- 企业互联网+转型实战:如何进行PB级别数据的架构变迁
- 阿里云原生资深专家李国强:云原生上云概述
- android实现地图功能实现,Android百度地图应用之基本地图功能实现
- 大卫科波菲尔优秀读后感范文4000字
- Linux发包工具pktgen
- 火狐浏览器书签无法删除解决方案
- 1-2 实验2 点对点通信
- 漫画 |《帝都程序猿十二时辰》
- php imagick 图片裁切,php Imagick , 怎么使用Imagick裁切图片
- Linux实用技巧——paste横向合并文件内容
- 数论的基础入门(初读数论概论有感)(acm知识储备)
- win7电脑蓝屏代码0x00000034
热门文章
- Python获取命令行参数
- 1030利用三层交换机实现VLAN间通信
- 泛微对协同管理的定义
- php页面底部信息居中,css底部如何局中?css三种居中方法
- python用map提取一个数的个十百位数_如何使用python中的map函数?
- [转载] python迭代器、生成器和装饰器
- [转载] Python入门(输入/输出、数据类型、条件/循环语句)
- [转载] Python3.X 线程中信号量的使用方法示例
- Java Vector setElementAt()方法与示例
- 云盾idaas登陆_移动端扫码登录IDaaS平台