In the previous one, I wrote a display form, which adds a button on this basis, click the pop-up dialog to write a text file with Notepad, the content: # Import a space from FROM System.Windows.Forms Import * from system.drawing import *
# 窗 f = form () f.text = "python hello world" # = B = Button () B.Text = "Click Me"
f.Controls.Add (b)
# Define the event of the button DEF buttonClick (Data, Event): ?? MessageBox.show ("Hello World !!")??
B.Click = ButtonClick F.Showdialog ()
Some or change to the PY suffix, where the test.py file is running: