Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import clr
  2. clr.AddReference('System.Windows.Forms')
  3. from System.Windows.Forms import *
  4. clr.AddReference('System.Drawing')
  5. from System.Drawing import Point
  6. def Zbroj(a,b):
  7. return a+b
  8. def newbut_Click(sender,args):
  9. sender.Tag.label1.Text='hahahhahhah'
  10. def DodajKontrole(frm):
  11. newbut=Button(Text='Pritisni', Location=Point(120,145))
  12. newbut.Click += newbut_Click
  13. newbut.Tag=frm
  14. frm.Controls.Add(newbut)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement