Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # http://scripterr.ru/
- #
- import System
- from System import *
- import clr
- bool = IN[0]
- inlist = IN[1]
- clr.AddReference("System.Windows.Forms")
- clr.AddReference("System.Drawing")
- clr.AddReference("System.Configuration")
- clr.AddReference("System.Data")
- clr.AddReference("System.ComponentModel")
- #from System.Configuration import *
- #from System.Windows.Forms import Application, Form
- #from System.Windows.Forms import Button, ComboBox, DomainUpDown, TextBox, ListBox
- #from System.Drawing import Point, Size
- class MainForm(System.Windows.Forms.Form):
- def __init__(self):
- self.InitializeComponent()
- def InitializeComponent(self):
- self._button1 = System.Windows.Forms.Button()
- self._comboBox1 = System.Windows.Forms.ComboBox()
- self.SuspendLayout()
- #
- # button1
- #
- self._button1.DialogResult = System.Windows.Forms.DialogResult.OK
- self._button1.Location = System.Drawing.Point(12, 282)
- self._button1.Name = "button1"
- self._button1.Size = System.Drawing.Size(534, 23)
- self._button1.TabIndex = 3
- self._button1.Text = "OK"
- self._button1.UseVisualStyleBackColor = True
- #
- # comboBox1
- #
- self._comboBox1.FormattingEnabled = True
- self._comboBox1.Items.AddRange(System.Array[System.Object](inlist))
- self._comboBox1.Location = System.Drawing.Point(12, 12)
- self._comboBox1.Name = "comboBox1"
- self._comboBox1.Size = System.Drawing.Size(260, 21)
- self._comboBox1.TabIndex = 4
- #
- # MainForm
- #
- self.AccessibleName = ""
- self.ClientSize = System.Drawing.Size(558, 317)
- self.Controls.Add(self._comboBox1)
- self.Controls.Add(self._button1)
- self.Name = "MainForm"
- self.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
- self.Text = "Script#8.4.Marking of wall hole"
- self.ResumeLayout(False)
- def GroupBox1Enter(self, sender, e):
- pass
- def Label1Click(self, sender, e):
- pass
- ## FOOTER ###
- dialog = MainForm()
- dialog.ShowDialog()
- OUT = dialog._comboBox1.SelectedItem
- ## FOOTER ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement