網頁

2018年12月27日 星期四

如何製作Scratch 2能在背景輸入中文的離線版程式(How to build a Scratch2 Offline program with Chinese input in the background)

Objective: Build a Scratch2 Offline program with Chinese input in the Scratch's background

Advantage:

1. Students can concentrate on coding ,programming and learning in the class.

2. Teacher can guide students more efficiently. Don't worried about the Internet interference. (like YouTube, Facebook etc...)

Build:
1. Download the scratch 2 https://scratch.mit.edu/download and Install to your computer.

2. Download the scratch.swf file (Thanks for NTPC's teacher)

3. Replace the scratch.swf (Directory: C:\Program Files(x86)\scratch 2\)

4. Run Scratch2.exe

5. Copy the whole scratch 2 DIR to your USB Flash drive.

2018年12月1日 星期六

[python] How to make a standalone exe file from a python(.py) file

1. install the anaconda.

2. install and upgrade
conda install -c conda-forge pyinstaller
conda install -c anaconda pywin32

3. pyinstaller --onefile <your_script_name>.py

4. Find the exefile in the Dist directory.

packages as follows:

Py2exe

PyInstaller

cx_Freeze

bbfreeze

py2app

ref:
http://www.freehackers.org/Packaging_a_python_program