Guest User

Untitled

a guest
Dec 5th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. import wx
  2.  
  3. class App(wx.Frame):
  4.  
  5.  
  6. def onClose(self,*args):
  7.  
  8. self.Close(True)
  9.  
  10.  
  11. def __init__(self, parent, id):
  12.  
  13. wx.Frame.__init__(self, parent, id, "AUTO MONETU PASPAUDIMAS", size=(420, 270))
  14.  
  15. image_file = "Desktop/Python/App/image.png"
  16. bmp = wx.Bitmap(image_file)
  17. bitmap = wx.StaticBitmap(self, wx.ID_ANY, bmp, (0, 0))
  18.  
  19. username = wx.TextCtrl(self, 0, "Vartotojo vardas", pos=(20, 120), size=(380, 25))
  20. username.Show()
  21.  
  22. password = wx.TextCtrl(self, 0, "slaptazodis", pos=(20, 160), size=(380, 25), style = wx.TE_PASSWORD)
  23. password.Show()
  24.  
  25. start = wx.Button(self, label = "Start", pos=(100, 200))
  26. start.Show()
  27.  
  28. exit = wx.Button(self, label = "Iseiti", pos=(230, 200))
  29.  
  30. exit.Bind(wx.EVT_BUTTON, self.onClose)
  31. exit.Show()
  32.  
  33. if __name__ == "__main__":
  34. app = wx.PySimpleApp()
  35. frame = App(parent = None, id = 1)
  36. frame.Show()
  37. app.MainLoop()
Add Comment
Please, Sign In to add comment