Several problems here.
With this indentation,
and all following lines are outside of class Form1
.
Also, all of the class Form1
’s normal startup code, necessary for it to work, have been removed from function Form1.__init__
. At minimum, this function needs
self.init_components(**properties)
If this is typical of the program’s code, and form settings, then many of our usual assumptions have to go out the window. You would then want to post a clone link, as @stucork did, so that the volunteers here can see more of what’s going on.