我有一个自定义的Python脚本,可以在Windows操作系统上创建消息,我想知道是否可以禁用消息框布局上的关闭[x]按钮
这是我的代码:
message= itsm.getParameter('get_message')
title= itsm.getParameter('get_title')
import os
import ctypes
uTypeNbutton = 0x40 #configure the button and uType style
def Mbox(title, text, style):
style=int(uTypeNbutton)+4096 #to make message box top all windows
return ctypes.windll.user32.MessageBoxW(0, text,title, style)
目前没有回答
相关问题 更多 >
编程相关推荐