Ironpython Hello World

xiaoxiao2021-03-06  95

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:

转载请注明原文地址:https://www.9cbs.com/read-122808.html

New Post(0)