Skip to content

Commit cde7539

Browse files
v1.4.1.5
========1.4.1.5======== 1. Fixed a bug in copying and creating skins for controls when applying skins. 2. Fix bug in tray menu code generation. 3. Fix version number check bug. 4. Fix the handling of shortcut buttons for adapting multiple controls to font size. 5. Improve direct drag to Frame and LabelFrame processing. 6. Improve the inclusion of module exceptions in pure packaging
1 parent f107761 commit cde7539

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+306
-221
lines changed

PyMe/Ico/ICO_VIP.png

4.55 KB
Loading

PyMe/PyMe.exe

2.67 KB
Binary file not shown.

PyMe/Wizard/En/VideoCapture.wiz

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name=VideoCapture
2+
lessonid=26
3+
difficulty=Simple
4+
reward=0
5+
introduction=Understand the function of developing video capture using components.
6+
stepindex=0
7+
1=Drag from the left toolbar to create a Canvas control and place it in Form_1, with a size of 800x600 pixels.["Create_Canvas","SetW_Canvas_1_800","SetH_Canvas_1_600"]
8+
2=Find the "VideoCapture" component from the "Other" category on the left toolbar and drag it into Form_1.["Create_VideoCapture"]
9+
3=Select the VideoCapture component, drag the tree item "Canvas_1" from the control tree in the upper right corner to the "Canvas" property value bar of the current "VideoCapture" component, and press Ctrl+S to save the current interface.["DragToAttribute_VideoCapture_Canvas_1","SaveFile_<%=ProjName%>.py"]
10+
4=Drag from the left toolbar to create a Button control and place it on the right side of Canvas_1. Set the text content to "Start Recording".["Create_Button","SetText_启动录制"]
11+
5=Then press ALT and drag to create a Button control and place it under Button 1. Set the text content to "Save Screenshot".["CopyCreate_Button_2","SetText_保存截图"]
12+
6=Then press ALT and drag to create a Button control and place it under Button 2. Set the text content to "stop recording".["CopyCreate_Button_3","SetText_停止录制"]
13+
7=Double click the "Start Camera" button to enter the click event response function. After wrapping, right-click and select "Start Recording" under "VideoCapture_1" in the "Interface Functions".["BindEvent_Button_1_onCommand","FunctionMenu_VideoCapture_StartCapture"]
14+
8=Start a new line below the function, select the "Save Screenshot" button in the thumbnail of the right-hand assistant bar, select the "Button Click" event, and click the "Bind" button to create an event response function.["BindEvent_Button_2_onCommand"]
15+
9=Enter the event response function, right-click after line wrapping, and select "Call Save File Box" in "System Functions".["FunctionMenu_saveFile"]
16+
10=Change the Python format saved in the code to PNG format, and write the code "if savePath:" after line breaks.["WriteCode_if savePath:"]
17+
11=After line breaking, right-click and select "Save Video as Image" under "VideoCapture_1" in the "Interface Functions". In the generated code, modify the parameter 1 of SaveImageToFile to savePath.["FunctionMenu_VideoCapture_SaveImageToFile","WriteCode_VideoCapture_1.SaveImageToFile(savePath,callbackFunction = None)"]
18+
12=Select the "Stop Recording" button in the thumbnail of the right-hand assistant bar, select the "Click" event, and click the "Bind" button to create an event response function.["BindEvent_Button_3_onCommand"]
19+
13=After line breaking, right-click and select "Stop Recording" under "VideoCapture_1" in the "Interface Functions" to generate the corresponding code.["FunctionMenu_VideoCapture_Stop"]
20+
14=Click on Run.["Run"]

PyMe/Wizard/视频捕捉.wiz

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name=视频组件
2+
lessonid=26
3+
difficulty=简单
4+
reward=0
5+
introduction=了解使用组件开发视频采集的功能。
6+
stepindex=11
7+
1=从左边工具条拖动创建一个Canvas控件放到Form_1中,设置大小为800x600像素。["Create_Canvas","SetW_Canvas_1_800","SetH_Canvas_1_600"]
8+
2=从左边工具条的“其它”分类中找到“VideoCapture"组件,拖入到Form_1中。["Create_VideoCapture"]
9+
3=选中VideoCapture组件,从右上角的控件树中把树项“Canvas_1”拖动到当前“VideoCapture”组件的“Canvas”属性值栏中,按Ctrl+S保存当前界面。["DragToAttribute_VideoCapture_Canvas_1","SaveFile_<%=ProjName%>.py"]
10+
4=从左边工具条拖动创建一个Button控件放到Canvas_1右边,设置文字内容为“启动录制”。["Create_Button","SetText_启动录制"]
11+
5=再按着ALT拖动复制创建一个Button控件放到Button_1下边,设置文字内容为“保存截图”。["CopyCreate_Button_2","SetText_保存截图"]
12+
6=再按着ALT拖动复制创建一个Button控件放到Button_2下边,设置文字内容为“停止录制”。["CopyCreate_Button_3","SetText_停止录制"]
13+
7=双击“启动摄像头”按钮,进入点击事件响应函数,换行后鼠标右键单击,在“界面函数”中的“VideoCapture_1”下选择“开始录像”。["BindEvent_Button_1_onCommand","FunctionMenu_VideoCapture_StartCapture"]
14+
8=在函数下面另起一行,在右侧助手栏缩略图中选择选择“保存截图”按钮,选中“按钮点击”事件,并点击“绑定”按钮,创建事件响应函数。["BindEvent_Button_2_onCommand"]
15+
9=进入事件响应函数,换行后鼠标右键单击,在“系统函数”中选择“调用保存文件框”。["FunctionMenu_saveFile"]
16+
10=将代码中保存Python格式改为PNG格式,换行后编写代码“if savePath:”。["WriteCode_if savePath:"]
17+
11=换行后鼠标右键单击,在“界面函数”中的“VideoCapture_1”下选择“将视频保存为图片”,在生成的代码中将SaveImageToFile的参数1修改为savePath。["FunctionMenu_VideoCapture_SaveImageToFile","WriteCode_VideoCapture_1.SaveImageToFile(savePath,callbackFunction = None)"]
18+
12=在右侧助手栏缩略图中选择选择“停止录制”按钮,选中“点击”事件,并点击“绑定”按钮,创建事件响应函数。["BindEvent_Button_3_onCommand"]
19+
13=换行后鼠标右键单击,在“界面函数”中的“VideoCapture_1”下选择“停止录制”,生成对应代码。["FunctionMenu_VideoCapture_Stop"]
20+
14=点击运行。["Run"]
0 Bytes
Binary file not shown.
7.5 KB
Binary file not shown.
20.5 KB
Binary file not shown.
20.5 KB
Binary file not shown.
21 KB
Binary file not shown.
22 KB
Binary file not shown.

0 commit comments

Comments
 (0)