comparison orpg/mapper/background_handler.py @ 76:37a11fea3304 ornery-dev

More clean up. Images now posts a Chat Info post if image doesn't load.
author sirebral
date Sat, 22 Aug 2009 04:02:14 -0500
parents c54768cffbd4
children 763a04270cf6
comparison
equal deleted inserted replaced
75:f518bc709fd1 76:37a11fea3304
33 from base_handler import * 33 from base_handler import *
34 import mimetypes 34 import mimetypes
35 import os 35 import os
36 from base import * 36 from base import *
37 37
38 from orpg.tools.orpg_settings import settings
39
38 class background_handler(base_layer_handler): 40 class background_handler(base_layer_handler):
39 def __init__(self, parent, id, canvas): 41 def __init__(self, parent, id, canvas):
40 base_layer_handler.__init__(self, parent, id, canvas) 42 base_layer_handler.__init__(self, parent, id, canvas)
41 self.settings = self.canvas.settings 43 self.settings = settings
42 44
43 def build_ctrls(self): 45 def build_ctrls(self):
44 base_layer_handler.build_ctrls(self) 46 base_layer_handler.build_ctrls(self)
45 self.lock = Lock() 47 self.lock = Lock()
46 self.bg_type = wx.Choice(self, wx.ID_ANY, choices = ["Texture", "Image", "Color" ]) 48 self.bg_type = wx.Choice(self, wx.ID_ANY, choices = ["Texture", "Image", "Color" ])