Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
ll committed Jul 12, 2021
1 parent 7c86fa1 commit 84df5d3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyefun/wxefun/evt.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class 事件:
获得焦点 = wx.EVT_SET_FOCUS
失去焦点 = wx.EVT_KILL_FOCUS
按钮被单击 = wx.EVT_BUTTON
创建完毕 = wx.wxEVT_INIT_DIALOG
创建完毕 = wx.EVT_WINDOW_CREATE
尺寸被改变 = wx.EVT_SIZE
位置被改变 = wx.EVT_MOVE
可否被关闭 = wx.EVT_CLOSE
Expand Down
18 changes: 18 additions & 0 deletions pyefun/wxefun/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,24 @@ def 组件_信息框(提示="", 标题="提示", 类型=0, 父窗口=None):
return wx.MessageBox(提示, 标题, 字典[类型], 父窗口)


@组件_异常检测
def 信息框(提示信息="", 标题="提示", 类型=0, 父窗口=None):
"""
类型:
0.无图标信息框
1.带取消键普通信息框
2.带是/否键普通信息框
3.带帮助键普通信息框
4.带红色错误图标信息框
5.带黄色感叹标题信息框
6.带盾牌(类似权限验证)图标信息框
返回值:2.是 4.确定 8.否 16.取消/关闭 4096.帮助
"""
字典 = {0: 262144, 1: 16, 2: 10, 3: 4096, 4: 512, 5: 256, 6: 524288}
return wx.MessageBox(提示信息, 标题, 字典[类型], 父窗口)


@组件_异常检测
def 组件_提示信息框(内容):
"弹出一个带蓝色反向感叹号图标的信息框"
Expand Down

0 comments on commit 84df5d3

Please sign in to comment.