Mercurial > traipse_dev
diff orpg/mapper/background_handler.py @ 14:0b8b7e3ed78d traipse_dev
Adding fixes from OpenRPG 1.8.0
Includes GUI patch for Linux users, init2 plugin, cherrypy XML refrence
Completely removes approot from the startup process and creates a software
cleanup process as well.
author | sirebral |
---|---|
date | Mon, 20 Jul 2009 21:25:13 -0500 |
parents | c056e967907a |
children | 78407d627cba |
line wrap: on
line diff
--- a/orpg/mapper/background_handler.py Sat Jul 18 11:08:53 2009 -0500 +++ b/orpg/mapper/background_handler.py Mon Jul 20 21:25:13 2009 -0500 @@ -45,18 +45,31 @@ self.lock = Lock() self.bg_type = wx.Choice(self, wx.ID_ANY, choices = ["Texture", "Image", "Color" ]) self.bg_type.SetSelection(2) - self.localBrowse = wx.Button(self, wx.ID_ANY, 'Browse') + self.localBrowse = wx.Button(self, wx.ID_ANY, 'Browse', style=wx.BU_EXACTFIT) self.localBrowse.Hide() self.url_path = wx.TextCtrl(self, wx.ID_ANY,"http://") self.color_button = wx.Button(self, wx.ID_ANY, "Color", style=wx.BU_EXACTFIT) self.color_button.SetBackgroundColour(wx.BLACK) self.color_button.SetForegroundColour(wx.WHITE) self.apply_button = wx.Button(self, wx.ID_ANY, "Apply", style=wx.BU_EXACTFIT) + """ self.sizer.Add(self.bg_type, 0, wx.EXPAND) self.sizer.Add(self.url_path, 1, wx.EXPAND) self.sizer.Add(self.color_button, 0, wx.EXPAND) self.sizer.Add(self.localBrowse, 0, wx.EXPAND) self.sizer.Add(self.apply_button, 0, wx.EXPAND) + """ + + self.sizer.Add(self.bg_type, 0, wx.ALIGN_CENTER) + self.sizer.Add((6, 0)) + self.sizer.Add(self.url_path, 1, wx.ALIGN_CENTER) + self.sizer.Add((6, 0)) + self.sizer.Add(self.color_button, 0, wx.ALIGN_CENTER) + self.sizer.Add((6, 0)) + self.sizer.Add(self.localBrowse, 0, wx.ALIGN_CENTER) + self.sizer.Add((6, 0)) + self.sizer.Add(self.apply_button, 0, wx.ALIGN_CENTER) + self.Bind(wx.EVT_BUTTON, self.on_bg_color, self.color_button) self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button) self.Bind(wx.EVT_BUTTON, self.on_browse, self.localBrowse)