diff orpg/mapper/background_handler.py @ 10:5df1340bda13 grumpy-goblin

Big patch! Linux GUI, Fetching Dict., Init2, Streaming lining.
author sirebral
date Tue, 21 Jul 2009 17:19:53 -0500
parents 33582ce538b5
children 211ac836b6a0
line wrap: on
line diff
--- a/orpg/mapper/background_handler.py	Sat Jul 18 11:41:05 2009 -0500
+++ b/orpg/mapper/background_handler.py	Tue Jul 21 17:19:53 2009 -0500
@@ -45,18 +45,22 @@
         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)