diff orpg/mapper/map_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 4385a7d0efd1
children 78407d627cba
line wrap: on
line diff
--- a/orpg/mapper/map_handler.py	Sat Jul 18 11:08:53 2009 -0500
+++ b/orpg/mapper/map_handler.py	Mon Jul 20 21:25:13 2009 -0500
@@ -34,10 +34,20 @@
 
     def build_ctrls(self):
         base_layer_handler.build_ctrls(self)
+
+        """
         self.width = wx.TextCtrl(self, wx.ID_ANY, size=(75,25))
         self.height = wx.TextCtrl(self, wx.ID_ANY, size=(75,25))
         self.apply_button = wx.Button(self, wx.ID_OK, "Apply", style=wx.BU_EXACTFIT)
+        """
+
+        self.width = wx.TextCtrl(self, wx.ID_ANY)
+        self.height = wx.TextCtrl(self, wx.ID_ANY)
+        self.apply_button = wx.Button(self, wx.ID_OK, "Apply", style=wx.BU_EXACTFIT)
+
         self.load_default = wx.Button(self, wx.ID_ANY, "Default Map", style=wx.BU_EXACTFIT)
+
+        """
         self.sizer.Prepend(wx.Size(20,25),1)
         self.sizer.Prepend(self.load_default, 0, wx.EXPAND)
         self.sizer.Prepend(wx.Size(20,25))
@@ -49,6 +59,18 @@
         self.sizer.Prepend(self.width, 0, wx.EXPAND)
         self.sizer.Prepend(wx.StaticText(self, -1, "Width: "),0,wx.ALIGN_CENTER)
         self.sizer.Prepend(wx.Size(10,25))
+        """
+
+        self.sizer.Add(wx.StaticText(self, -1, "Width: "),0, wx.ALIGN_CENTER)
+        self.sizer.Add(self.width, 0, wx.ALIGN_CENTER)
+        self.sizer.Add((6, 0))
+        self.sizer.Add(wx.StaticText(self, -1, "Height: "),0, wx.ALIGN_CENTER)
+        self.sizer.Add(self.height, 0, wx.ALIGN_CENTER)
+        self.sizer.Add((6, 0))
+        self.sizer.Add(self.apply_button, 0, wx.ALIGN_CENTER)
+        self.sizer.Add((6, 0))
+        self.sizer.Add(self.load_default, 0, wx.ALIGN_CENTER)
+
         self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button)
         self.Bind(wx.EVT_BUTTON, self.on_load_default, self.load_default)
         self.update_info()