Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Microsoft.VisualBasic import *
- from System import *
- from System.Collections import *
- from System.Collections.Generic import *
- from System.Data import *
- from System.Diagnostics import *
- class ClickTest(object):
- def Button1_Click(self, sender, e):
- TextBox1.Text +=
- Timer1.Enabled = True
- def Button2_Click(self, sender, e):
- TextBox1.Text = 0
- TextBox2.Text = 10
- Timer1.Stop()
- def Label2_Click(self, sender, e):
- pass
- def Form1_Load(self, sender, e):
- pass
- def TextBox2_TextChanged(self, sender, e):
- Timer1.Enabled = True
- Timer1.Interval = 1000
- TextBox2.Enabled = False
- def Timer1_Tick(self, sender, e):
- TextBox2.Text -=
- if TextBox2.Text == "0":
- Timer1.Stop()
- MessageBox.Show("Aikasi loppui, Tuloksesi on: " + Convert.ToString(TextBox1.Text))
- TextBox1.Text = 0
- TextBox2.Text = 10
- def TextBox1_TextChanged(self, sender, e):
- TextBox1.Enabled = False
- def __init__(self):
- Load += Form1_Load
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement