equal
deleted
inserted
replaced
1047 self.RefreshRect(self.GetScrolledRect(refresh_rect), False) |
1047 self.RefreshRect(self.GetScrolledRect(refresh_rect), False) |
1048 else: |
1048 else: |
1049 DebugViewer.RefreshNewData(self) |
1049 DebugViewer.RefreshNewData(self) |
1050 |
1050 |
1051 def SubscribeAllDataConsumers(self): |
1051 def SubscribeAllDataConsumers(self): |
|
1052 self.RefreshView() |
1052 DebugViewer.SubscribeAllDataConsumers(self) |
1053 DebugViewer.SubscribeAllDataConsumers(self) |
1053 self.RefreshView() |
|
1054 |
1054 |
1055 # Refresh Viewer elements |
1055 # Refresh Viewer elements |
1056 def RefreshView(self, variablepanel=True, selection=None): |
1056 def RefreshView(self, variablepanel=True, selection=None): |
1057 EditorPanel.RefreshView(self, variablepanel) |
1057 EditorPanel.RefreshView(self, variablepanel) |
1058 |
1058 |
3400 if self.Debug: |
3400 if self.Debug: |
3401 is_action = self.TagName.split("::")[0] == "A" |
3401 is_action = self.TagName.split("::")[0] == "A" |
3402 text = _("Debug: %s") % self.InstancePath |
3402 text = _("Debug: %s") % self.InstancePath |
3403 if is_action and self.Value is not None: |
3403 if is_action and self.Value is not None: |
3404 text += " (" |
3404 text += " (" |
|
3405 text_offset_x, text_offset_y = self.CalcUnscrolledPosition(2, 2) |
3405 dc.DrawText(text, 2, 2) |
3406 dc.DrawText(text, 2, 2) |
3406 if is_action and self.Value is not None: |
3407 if is_action and self.Value is not None: |
3407 value_text = self.VALUE_TRANSLATION[self.Value] |
3408 value_text = self.VALUE_TRANSLATION[self.Value] |
3408 tw, th = dc.GetTextExtent(text) |
3409 tw, th = dc.GetTextExtent(text) |
3409 if self.Value: |
3410 if self.Value: |