PageRenderTime 344ms CodeModel.GetById 37ms RepoModel.GetById 0ms app.codeStats 0ms

/Trunk/Source/IronPython/IronPythonProject/Templates/Projects/WinformApp/Form1.py

#
Python | 36 lines | 23 code | 5 blank | 8 comment | 0 complexity | 33fd1c75bf84469667ace5c1cba1e2fd 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 $safeprojectname$: #namespace
  7. class Form1(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. # Form1
  24. #
  25. #
  26. #
  27. self.ClientSize = Size(292, 266)
  28. self.Name = 'Form1'
  29. self.Text = 'Form1'
  30. self.ResumeLayout(False)
  31. self.PerformLayout()