User Tools

Site Tools


simple_input_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
simple_input_example [2020/03/13 00:30]
credzba created
simple_input_example [2020/07/06 03:29] (current)
Line 15: Line 15:
         self.Text = 'Main Form'         self.Text = 'Main Form'
         my_button = Forms.Button(Text='​Go!'​)         my_button = Forms.Button(Text='​Go!'​)
-        my_button.Click += self.OnClick+        my_button.Click += self.MyOnClick
         my_button.Location = Point(25, 95)         my_button.Location = Point(25, 95)
         self.Controls.Add(my_button)         self.Controls.Add(my_button)
Line 27: Line 27:
         self.Controls.Add(self.textbox)         self.Controls.Add(self.textbox)
         ​         ​
-    def OnClick(self, *args):+    def MyOnClick(self, *args):
         self.Finished()         self.Finished()
     ​     ​
simple_input_example.txt ยท Last modified: 2020/07/06 03:29 (external edit)