I am looking at some code for making a tabbed split image viewer with IronPython using windows forms and there is a line in the init function that I don't understand and cannot see an explanation for when I google it.I have placed a comment next to the line in question.
Below is some code, it is just boiler plate code that will bring up an empty form.
import clr
clr.AddReference('System.Windows.Forms')
from System.Windows.Forms import Application, Form
class MainForm(Form):
def __init__(self):
Form.__init__(self) #what is this line doing?
self.Show()
Application.EnableVisualStyles()
form = MainForm()
Application.Run(form)
Elsewhere on the page http://www.voidspace.org.uk/ironpython/winforms/part11.shtml it has a finished program which kind of works (the tabs do nothing when you add extra images) but still has the same line in the init function, does anyone kow what it does?