equal
deleted
inserted
replaced
56 [(_("%dh") % i, i * HOUR) for i in (1, 2, 3, 6, 12, 24)] |
56 [(_("%dh") % i, i * HOUR) for i in (1, 2, 3, 6, 12, 24)] |
57 |
57 |
58 # Scrollbar increment in pixel |
58 # Scrollbar increment in pixel |
59 SCROLLBAR_UNIT = 10 |
59 SCROLLBAR_UNIT = 10 |
60 |
60 |
|
61 |
61 def compute_mask(x, y): |
62 def compute_mask(x, y): |
62 return [(xp if xp == yp else "*") |
63 return [(xp if xp == yp else "*") |
63 for xp, yp in zip(x, y)] |
64 for xp, yp in zip(x, y)] |
|
65 |
64 |
66 |
65 def NextTick(variables): |
67 def NextTick(variables): |
66 next_tick = None |
68 next_tick = None |
67 for item, data in variables: |
69 for item, data in variables: |
68 if len(data) == 0: |
70 if len(data) == 0: |
76 |
78 |
77 #------------------------------------------------------------------------------- |
79 #------------------------------------------------------------------------------- |
78 # Debug Variable Graphic Panel Drop Target |
80 # Debug Variable Graphic Panel Drop Target |
79 #------------------------------------------------------------------------------- |
81 #------------------------------------------------------------------------------- |
80 |
82 |
81 """ |
|
82 Class that implements a custom drop target class for Debug Variable Graphic |
|
83 Panel |
|
84 """ |
|
85 |
83 |
86 class DebugVariableDropTarget(wx.TextDropTarget): |
84 class DebugVariableDropTarget(wx.TextDropTarget): |
|
85 """ |
|
86 Class that implements a custom drop target class for Debug Variable Graphic |
|
87 Panel |
|
88 """ |
87 |
89 |
88 def __init__(self, window): |
90 def __init__(self, window): |
89 """ |
91 """ |
90 Constructor |
92 Constructor |
91 @param window: Reference to the Debug Variable Panel |
93 @param window: Reference to the Debug Variable Panel |
171 |
173 |
172 #------------------------------------------------------------------------------- |
174 #------------------------------------------------------------------------------- |
173 # Debug Variable Graphic Panel Class |
175 # Debug Variable Graphic Panel Class |
174 #------------------------------------------------------------------------------- |
176 #------------------------------------------------------------------------------- |
175 |
177 |
176 """ |
|
177 Class that implements a Viewer that display variable values as a graphs |
|
178 """ |
|
179 |
178 |
180 class DebugVariablePanel(wx.Panel, DebugViewer): |
179 class DebugVariablePanel(wx.Panel, DebugViewer): |
|
180 """ |
|
181 Class that implements a Viewer that display variable values as a graphs |
|
182 """ |
181 |
183 |
182 def __init__(self, parent, producer, window): |
184 def __init__(self, parent, producer, window): |
183 """ |
185 """ |
184 Constructor |
186 Constructor |
185 @param parent: Reference to the parent wx.Window |
187 @param parent: Reference to the parent wx.Window |