equal
deleted
inserted
replaced
213 if wx.VERSION >= (2, 6, 0): |
213 if wx.VERSION >= (2, 6, 0): |
214 parent.Append(help=help, id=id, kind=kind, text=text) |
214 parent.Append(help=help, id=id, kind=kind, text=text) |
215 else: |
215 else: |
216 parent.Append(helpString=help, id=id, kind=kind, item=text) |
216 parent.Append(helpString=help, id=id, kind=kind, item=text) |
217 |
217 |
|
218 |
218 [TITLE, EDITORTOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, PROJECTTREE, |
219 [TITLE, EDITORTOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, PROJECTTREE, |
219 POUINSTANCEVARIABLESPANEL, LIBRARYTREE, SCALING, PAGETITLES |
220 POUINSTANCEVARIABLESPANEL, LIBRARYTREE, SCALING, PAGETITLES |
220 ] = range(10) |
221 ] = range(10) |
221 |
222 |
222 |
223 |
241 parent_name = item_infos["tagname"].split("::")[1] |
242 parent_name = item_infos["tagname"].split("::")[1] |
242 remove_function(self.Controler, parent_name, name) |
243 remove_function(self.Controler, parent_name, name) |
243 else: |
244 else: |
244 remove_function(self.Controler, name) |
245 remove_function(self.Controler, name) |
245 return DeleteElementFunction |
246 return DeleteElementFunction |
|
247 |
246 |
248 |
247 if wx.Platform == '__WXMSW__': |
249 if wx.Platform == '__WXMSW__': |
248 TAB_BORDER = 6 |
250 TAB_BORDER = 6 |
249 NOTEBOOK_BORDER = 6 |
251 NOTEBOOK_BORDER = 6 |
250 else: |
252 else: |
326 return tabs |
328 return tabs |
327 |
329 |
328 #------------------------------------------------------------------------------- |
330 #------------------------------------------------------------------------------- |
329 # IDEFrame Base Class |
331 # IDEFrame Base Class |
330 #------------------------------------------------------------------------------- |
332 #------------------------------------------------------------------------------- |
|
333 |
331 |
334 |
332 UNEDITABLE_NAMES_DICT = dict([(_(name), name) for name in UNEDITABLE_NAMES]) |
335 UNEDITABLE_NAMES_DICT = dict([(_(name), name) for name in UNEDITABLE_NAMES]) |
333 |
336 |
334 |
337 |
335 class IDEFrame(wx.Frame): |
338 class IDEFrame(wx.Frame): |
2551 |
2554 |
2552 #------------------------------------------------------------------------------- |
2555 #------------------------------------------------------------------------------- |
2553 # Viewer Printout |
2556 # Viewer Printout |
2554 #------------------------------------------------------------------------------- |
2557 #------------------------------------------------------------------------------- |
2555 |
2558 |
|
2559 |
2556 UPPER_DIV = lambda x, y: (x / y) + {True: 0, False: 1}[(x % y) == 0] |
2560 UPPER_DIV = lambda x, y: (x / y) + {True: 0, False: 1}[(x % y) == 0] |
2557 |
2561 |
2558 |
2562 |
2559 class GraphicPrintout(wx.Printout): |
2563 class GraphicPrintout(wx.Printout): |
2560 def __init__(self, viewer, page_size, margins, preview=False): |
2564 def __init__(self, viewer, page_size, margins, preview=False): |