rendered paste body#!/usr/bin/pythonimport wxclass MainFrame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, (-1, -1), wx.Size(350, 300)) panel = wx.Panel(self, -1) sizer = wx.BoxSizer(wx.VERTICAL) # Mods mod = wx.StaticBox(self, -1, 'Select a mod') mod_sizer = wx.StaticBoxSizer(mod) mods = ['default','cog'] self.selectmod = wx.wx.ComboBox(self, -1, choices=mods, style=wx.CB_READONLY) mod_sizer.Add(self.selectmod, 1) #Buttons buttons = wx.StaticBox(self, -1, '') button_sizer = wx.StaticBoxSizer(buttons) button_sizer.Add(wx.Button(self, 1, 'Quit'),1) button_sizer.Add(wx.Button(self, 2, 'About'),1) button_sizer.Add(wx.Button(self, -1, 'Launch!'),1) #Netplay net= wx.StaticBox(self, -1, 'Netplay') net_sizer = wx.StaticBoxSizer(net) net_sizer.Add(wx.CheckBox(self, -1, 'Connect to Server')) net_sizer.Add(wx.CheckBox(self, -1, 'Splitscreen')) sizer.Add(mod_sizer, 1, wx.ALIGN_CENTER) sizer.Add(net_sizer, 1, wx.ALIGN_CENTER) sizer.Add(button_sizer, 1, wx.ALIGN_BOTTOM, wx.ALIGN_CENTER_HORIZONTAL) panel.SetSizer(sizer) self.Centre() self.Bind(wx.EVT_BUTTON, self.quit, id=1) self.Bind(wx.EVT_BUTTON, self.about, id=2) def quit(self, event): self.Close(True) def about(self, about): popup = wx.MessageDialog(self, 'Gusanos Launcher by mots\n' 'Version 1.0\n\n' 'visit #liero on irc.quakenet.org for more information', 'About', wx.OK | wx.ICON_INFORMATION) popup.ShowModal() popup.Destroy()class App(wx.App): def OnInit(self): frame = MainFrame(None, -1, 'Gusanos Launcher') frame.Show(True) return Trueapp = App(0)app.MainLoop()