Advertisement
Guest User

editor2.py

a guest
Jan 31st, 2012
707
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. import wx
  2.  
  3. class Window(wx.Frame):
  4.  
  5.     def __init__(self, parent, title):
  6.         wx.Frame.__init__(self, parent, title = title, size = (300,250))
  7.         self.control = wx.TextCtrl(self, style = wx.TE_MULTILINE)
  8.         self.Show(True)
  9.  
  10.         menu = wx.Menu()
  11.         menu.Append(wx.ID_ABOUT,"About","Push the button to get an information about this application")
  12.         menu.Append(wx.ID_EXIT,"Exit","Push the button to leave this application")
  13.         bar = wx.MenuBar()
  14.         bar.Append(menu,"File")
  15.         self.SetMenuBar(bar)
  16. app = wx.App()
  17. wnd = Window(None, "pyNote")
  18. app.MainLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement