Mercurial > traipse_dev
comparison 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 |
comparison
equal
deleted
inserted
replaced
13:3add6bbc3a56 | 14:0b8b7e3ed78d |
---|---|
43 def build_ctrls(self): | 43 def build_ctrls(self): |
44 base_layer_handler.build_ctrls(self) | 44 base_layer_handler.build_ctrls(self) |
45 self.lock = Lock() | 45 self.lock = Lock() |
46 self.bg_type = wx.Choice(self, wx.ID_ANY, choices = ["Texture", "Image", "Color" ]) | 46 self.bg_type = wx.Choice(self, wx.ID_ANY, choices = ["Texture", "Image", "Color" ]) |
47 self.bg_type.SetSelection(2) | 47 self.bg_type.SetSelection(2) |
48 self.localBrowse = wx.Button(self, wx.ID_ANY, 'Browse') | 48 self.localBrowse = wx.Button(self, wx.ID_ANY, 'Browse', style=wx.BU_EXACTFIT) |
49 self.localBrowse.Hide() | 49 self.localBrowse.Hide() |
50 self.url_path = wx.TextCtrl(self, wx.ID_ANY,"http://") | 50 self.url_path = wx.TextCtrl(self, wx.ID_ANY,"http://") |
51 self.color_button = wx.Button(self, wx.ID_ANY, "Color", style=wx.BU_EXACTFIT) | 51 self.color_button = wx.Button(self, wx.ID_ANY, "Color", style=wx.BU_EXACTFIT) |
52 self.color_button.SetBackgroundColour(wx.BLACK) | 52 self.color_button.SetBackgroundColour(wx.BLACK) |
53 self.color_button.SetForegroundColour(wx.WHITE) | 53 self.color_button.SetForegroundColour(wx.WHITE) |
54 self.apply_button = wx.Button(self, wx.ID_ANY, "Apply", style=wx.BU_EXACTFIT) | 54 self.apply_button = wx.Button(self, wx.ID_ANY, "Apply", style=wx.BU_EXACTFIT) |
55 """ | |
55 self.sizer.Add(self.bg_type, 0, wx.EXPAND) | 56 self.sizer.Add(self.bg_type, 0, wx.EXPAND) |
56 self.sizer.Add(self.url_path, 1, wx.EXPAND) | 57 self.sizer.Add(self.url_path, 1, wx.EXPAND) |
57 self.sizer.Add(self.color_button, 0, wx.EXPAND) | 58 self.sizer.Add(self.color_button, 0, wx.EXPAND) |
58 self.sizer.Add(self.localBrowse, 0, wx.EXPAND) | 59 self.sizer.Add(self.localBrowse, 0, wx.EXPAND) |
59 self.sizer.Add(self.apply_button, 0, wx.EXPAND) | 60 self.sizer.Add(self.apply_button, 0, wx.EXPAND) |
61 """ | |
62 | |
63 self.sizer.Add(self.bg_type, 0, wx.ALIGN_CENTER) | |
64 self.sizer.Add((6, 0)) | |
65 self.sizer.Add(self.url_path, 1, wx.ALIGN_CENTER) | |
66 self.sizer.Add((6, 0)) | |
67 self.sizer.Add(self.color_button, 0, wx.ALIGN_CENTER) | |
68 self.sizer.Add((6, 0)) | |
69 self.sizer.Add(self.localBrowse, 0, wx.ALIGN_CENTER) | |
70 self.sizer.Add((6, 0)) | |
71 self.sizer.Add(self.apply_button, 0, wx.ALIGN_CENTER) | |
72 | |
60 self.Bind(wx.EVT_BUTTON, self.on_bg_color, self.color_button) | 73 self.Bind(wx.EVT_BUTTON, self.on_bg_color, self.color_button) |
61 self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button) | 74 self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button) |
62 self.Bind(wx.EVT_BUTTON, self.on_browse, self.localBrowse) | 75 self.Bind(wx.EVT_BUTTON, self.on_browse, self.localBrowse) |
63 self.Bind(wx.EVT_CHOICE, self.on_bg_type, self.bg_type) | 76 self.Bind(wx.EVT_CHOICE, self.on_bg_type, self.bg_type) |
64 self.update_info() | 77 self.update_info() |