Mercurial > traipse
comparison orpg/mapper/grid_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 | 4385a7d0efd1 |
children | 211ac836b6a0 |
comparison
equal
deleted
inserted
replaced
9:80ab434efc87 | 10:5df1340bda13 |
---|---|
42 self.grid_ratio = wx.TextCtrl(self, wx.ID_ANY, size=(32,-1) ) | 42 self.grid_ratio = wx.TextCtrl(self, wx.ID_ANY, size=(32,-1) ) |
43 self.color_button = wx.Button(self, wx.ID_ANY, "Color", style=wx.BU_EXACTFIT) | 43 self.color_button = wx.Button(self, wx.ID_ANY, "Color", style=wx.BU_EXACTFIT) |
44 self.apply_button = wx.Button(self, wx.ID_OK, "Apply", style=wx.BU_EXACTFIT) | 44 self.apply_button = wx.Button(self, wx.ID_OK, "Apply", style=wx.BU_EXACTFIT) |
45 self.color_button.SetBackgroundColour(wx.BLACK) | 45 self.color_button.SetBackgroundColour(wx.BLACK) |
46 self.color_button.SetForegroundColour(wx.WHITE) | 46 self.color_button.SetForegroundColour(wx.WHITE) |
47 self.sizer.Add(wx.StaticText(self, -1, "Size: "), 0, wx.ALIGN_CENTER|wx.ALL, 3) | 47 self.sizer.Add(wx.StaticText(self, -1, "Size: "), 0, wx.ALIGN_CENTER) |
48 self.sizer.Add(self.grid_size, 0, wx.EXPAND|wx.ALL, 2) | 48 self.sizer.Add(self.grid_size, 0, wx.ALIGN_CENTER) |
49 self.sizer.Add(wx.StaticText(self, -1, "Ratio: "), 0, wx.ALIGN_CENTER|wx.ALL, 3) | 49 self.sizer.Add((6,0)) |
50 self.sizer.Add(self.grid_ratio, 0, wx.EXPAND|wx.ALL, 2) | 50 self.sizer.Add(wx.StaticText(self, -1, "Ratio: "), 0, wx.ALIGN_CENTER) |
51 self.sizer.Add(self.line_type, 0, wx.EXPAND|wx.ALL, 3) | 51 self.sizer.Add(self.grid_ratio, 0, wx.ALIGN_CENTER) |
52 self.sizer.Add(self.grid_mode, 0, wx.EXPAND|wx.ALL, 2) | 52 self.sizer.Add((6,0)) |
53 self.sizer.Add(self.grid_snap, 0, wx.EXPAND|wx.ALL, 3) | 53 self.sizer.Add(self.line_type, 0, wx.ALIGN_CENTER) |
54 self.sizer.Add(self.color_button, 0, wx.EXPAND|wx.ALL, 2) | 54 self.sizer.Add((6,0)) |
55 self.sizer.Add(self.apply_button, 0, wx.EXPAND|wx.ALL, 3) | 55 self.sizer.Add(self.grid_mode, 0, wx.ALIGN_CENTER) |
56 self.sizer.Add(wx.Size(20,25),1) | 56 self.sizer.Add((6,0)) |
57 self.sizer.Add(self.grid_snap, 0, wx.ALIGN_CENTER) | |
58 self.sizer.Add((6,0)) | |
59 self.sizer.Add(self.color_button, 0, wx.ALIGN_CENTER) | |
60 self.sizer.Add((6,0)) | |
61 self.sizer.Add(self.apply_button, 0, wx.ALIGN_CENTER) | |
57 self.Bind(wx.EVT_BUTTON, self.on_bg_color, self.color_button) | 62 self.Bind(wx.EVT_BUTTON, self.on_bg_color, self.color_button) |
58 self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button) | 63 self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button) |
59 self.update_info() | 64 self.update_info() |
60 | 65 |
61 def update_info(self): | 66 def update_info(self): |