IT-Academy

Kostra GUI Python

Feb 2nd, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. import wx
  2.  
  3. # Potrebujeme triedu...
  4. class Appka(wx.Frame): # Frame = Okno, je trieda...
  5.  
  6.     # Vytvorenie Framu, hned po spusteni ...
  7.     def __init__(self,parent,id):   # Konstruktor
  8.         wx.Frame.__init__(self,parent,id,"Moje prve GUI", (300,200))
  9.  
  10. if __name__ == '__main__':
  11.     app = wx.PySimpleApp()              # Aplication objekt
  12.     frame = Appka(parent=None,id=-1)    # Frame objekt
  13.     frame.Show()
  14.     app.MainLoop()
Advertisement
Add Comment
Please, Sign In to add comment