The Python GUI sample programs included in this device driver use Tkinter (Tk interface) as a graphical user interface library.
The files that contain the main function for these GUI sample programs
are provided with a ".pyw" extension.
When you double-click ".pyw" file in the target folder with File
Explorer to start the sample program. (Example: SampleApp.pyw)
All Python GUI sample programs use callback functions to handle event notifications.
Even with the same project name, the way
to handle event notifications are different for other development language's
sample programs. (VB. NET, VC#, VC++, etc.)
The traditional message notification handling of event notifications has
been replaced by callback functions.
Python for Windows provides python.exe and pythonw.exe.
python.exe uses with a console (command prompt
or terminal).
You can execute the program when you specify a file with the extension
".py" on the console.
Ideal for CUI programs. Also useful for files that contain only subroutine
functions.
pythonw.exe uses without a console.
You can execute the program when you specify a file with a ".pyw"
extension, such as in File Explorer.
Ideal for GUI programs. The ".pyw" extension is typically associated
with pythonw.exe.