/branches/DevExpress/Demo/IronPythonDemo/IronPythonDemo/Form1.py

# · Python · 44 lines · 28 code · 9 blank · 7 comment · 0 complexity · 03616ed2ba0684574263c9abd02dc145 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. import CSharpControls
  7. class IronPythonDemo: # namespace
  8. class Form1(System.Windows.Forms.Form):
  9. """type(_ctl_tb_codsoftitem_Keel1) == CSharpControls.ctl_tb_codsoftitem_Keel"""
  10. __slots__ = ['_ctl_tb_codsoftitem_Keel1']
  11. def __init__(self):
  12. self.InitializeComponent()
  13. @accepts(Self(), bool)
  14. @returns(None)
  15. def Dispose(self, disposing):
  16. super(type(self), self).Dispose(disposing)
  17. @returns(None)
  18. def InitializeComponent(self):
  19. self._ctl_tb_codsoftitem_Keel1 = CSharpControls.ctl_tb_codsoftitem_Keel()
  20. self.SuspendLayout()
  21. #
  22. # ctl_tb_codsoftitem_Keel1
  23. #
  24. self._ctl_tb_codsoftitem_Keel1.Location = System.Drawing.Point(30, 12)
  25. self._ctl_tb_codsoftitem_Keel1.Name = 'ctl_tb_codsoftitem_Keel1'
  26. self._ctl_tb_codsoftitem_Keel1.Size = System.Drawing.Size(700, 251)
  27. self._ctl_tb_codsoftitem_Keel1.TabIndex = 0
  28. #
  29. # Form1
  30. #
  31. self.ClientSize = System.Drawing.Size(782, 319)
  32. self.Controls.Add(self._ctl_tb_codsoftitem_Keel1)
  33. self.Name = 'Form1'
  34. self.Text = 'Form1'
  35. self.ResumeLayout(False)