Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- popup_window = wx.Frame(None, title ='Wagner SprayTech V2.0',size=(700, 700))
- popup_window_panel = wx.Panel(self.popup_window,-1)
- #Have a MENU BAR
- menu_bar = wx.MenuBar()
- save_button = wx.Menu()
- menu_bar.Append(save_button, 'Save')
- self.popup_window.SetMenuBar(menu_bar) # Add the menu bar to the
- listbox_allvariables = wx.ListCtrl(popup_window_panel, -1, style=wx.LC_REPORT|wx.BORDER_SUNKEN)
- listbox_allvariables.InsertColumn(0,'asdf')
- listbox_allvariables.InsertColumn(1,'sadfadfasdfa')
- listbox_allvariables.InsertColumn(2,'asdf')
- listbox_allvariables.InsertColumn(3, 'asdf')
- rows = [("Ford", "Taurus", "1996", "Blue"),
- ("Nissan", "370Z", "2010", "Green"),
- ("Porche", "911", "2009", "Red")
- ]
- index = 0
- for row in rows:
- listbox_allvariables.InsertStringItem(index, row[0])
- listbox_allvariables.SetStringItem(index, 1, row[1])
- listbox_allvariables.SetStringItem(index, 2, row[2])
- listbox_allvariables.SetStringItem(index, 3, row[3])
- print index
- index += 1
- popup_window.Show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement