/Visual Studio Product Team/IronPython Integration/[C#]-IronPython Integration/C#/integration/IronPython/src/IronPython.Project/Templates/Items/Form/Form.py

https://github.com/microsoftarchive/msdn-code-gallery-microsoft
Python | 36 lines | 35 code | 1 blank | 0 comment | 0 complexity | c7681fee4fbd8bc3e2985e7b7053195e MD5 | raw file
  1. import System
  2. from System.Windows.Forms import *
  3. from System.ComponentModel import *
  4. from System.Drawing import *
  5. from clr import *
  6. class $rootnamespace$: # namespace
  7. class $safeitemname$(System.Windows.Forms.Form):
  8. """"""
  9. __slots__ = []
  10. def __init__(self):
  11. self.InitializeComponent()
  12. @accepts(object, bool)
  13. @returns(None)
  14. def Dispose(self, disposing):
  15. #if disposing and (components != None):
  16. # components.Dispose()
  17. super(type(self), self).Dispose(disposing)
  18. @returns(None)
  19. def InitializeComponent(self):
  20. self.SuspendLayout()
  21. #
  22. #
  23. # $safeitemname$
  24. #
  25. #
  26. #
  27. self.ClientSize = Size(292, 266)
  28. self.Name = '$safeitemname$'
  29. self.Text = '$safeitemname$'
  30. self.ResumeLayout(False)
  31. self.PerformLayout()