class inputBox (Форма):
def __init__(self):
self.Width = 275
self.Height = 175
self.Text = 'Deeds crafting'
self.Name = 'Deeds crafting'
self.textbox = TextBox()
self.textbox.Text = "Enter the amount of deeds to craft..."
self.textbox.Location = Point(25, 50)
self.textbox.Width = 200
#is it possible to make digit only textbox?
self.button1 = Button()
self.button1.Text = 'Confirm'
self.button1.Location = Point(85, 85)
self.button1.Click += self.confirm
self.Controls.Add(self.textbox)
self.Controls.Add(self.button1)
def confirm(self, sender, event):
counter = self.textbox.Text
if int(counter) =
#i need to check if its can be converted to int.
self.Close()
form = inputBox () Application.Run (форма)
Прочитайте мои комментарии кода для информации. введите описание изображения здесь