comparison orpg/mapper/miniatures_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 449a8900f9ac
children 763a04270cf6
comparison
equal deleted inserted replaced
75:f518bc709fd1 76:37a11fea3304
37 import wx 37 import wx
38 from grid import GRID_RECTANGLE 38 from grid import GRID_RECTANGLE
39 from grid import GRID_HEXAGON 39 from grid import GRID_HEXAGON
40 from grid import GRID_ISOMETRIC 40 from grid import GRID_ISOMETRIC
41 import os 41 import os
42
43 from orpg.tools.orpg_settings import settings
42 44
43 LABEL_TOOL = wx.NewId() 45 LABEL_TOOL = wx.NewId()
44 LAYER_TOOL = wx.NewId() 46 LAYER_TOOL = wx.NewId()
45 MIN_LIST_TOOL = wx.NewId() 47 MIN_LIST_TOOL = wx.NewId()
46 MIN_TOOL = wx.NewId() 48 MIN_TOOL = wx.NewId()
101 self.sel_min = None 103 self.sel_min = None
102 self.auto_label = 1 104 self.auto_label = 1
103 self.use_serial = 1 105 self.use_serial = 1
104 self.auto_label_cb = None 106 self.auto_label_cb = None
105 self.canvas = canvas 107 self.canvas = canvas
106 self.settings = self.canvas.settings 108 self.settings = settings
107 self.mini_rclick_menu_extra_items = {} 109 self.mini_rclick_menu_extra_items = {}
108 self.background_rclick_menu_extra_items = {} 110 self.background_rclick_menu_extra_items = {}
109 base_layer_handler.__init__(self, parent, id, canvas) 111 base_layer_handler.__init__(self, parent, id, canvas)
110 # id is the index of the last good menu choice or 'None' 112 # id is the index of the last good menu choice or 'None'
111 # if the last menu was left without making a choice 113 # if the last menu was left without making a choice