Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. popup_window = wx.Frame(None, title ='Wagner SprayTech V2.0',size=(700, 700))
  2. popup_window_panel = wx.Panel(self.popup_window,-1)
  3. #Have a MENU BAR
  4.  
  5. menu_bar = wx.MenuBar()
  6. save_button = wx.Menu()
  7. menu_bar.Append(save_button, 'Save')
  8. self.popup_window.SetMenuBar(menu_bar) # Add the menu bar to the
  9.  
  10. listbox_allvariables = wx.ListCtrl(popup_window_panel, -1, style=wx.LC_REPORT|wx.BORDER_SUNKEN)
  11. listbox_allvariables.InsertColumn(0,'asdf')
  12.  
  13. listbox_allvariables.InsertColumn(1,'sadfadfasdfa')
  14. listbox_allvariables.InsertColumn(2,'asdf')
  15. listbox_allvariables.InsertColumn(3, 'asdf')
  16. rows = [("Ford", "Taurus", "1996", "Blue"),
  17. ("Nissan", "370Z", "2010", "Green"),
  18. ("Porche", "911", "2009", "Red")
  19. ]
  20.  
  21. index = 0
  22. for row in rows:
  23. listbox_allvariables.InsertStringItem(index, row[0])
  24. listbox_allvariables.SetStringItem(index, 1, row[1])
  25. listbox_allvariables.SetStringItem(index, 2, row[2])
  26. listbox_allvariables.SetStringItem(index, 3, row[3])
  27. print index
  28. index += 1
  29.  
  30.  
  31. popup_window.Show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement