controls/DebugVariablePanel/DebugVariableTextViewer.py
changeset 1209 953a8f14040a
parent 1207 fb9799a0c0f7
child 1214 2ef048b5383c
--- a/controls/DebugVariablePanel/DebugVariableTextViewer.py	Mon Jun 03 00:18:13 2013 +0200
+++ b/controls/DebugVariablePanel/DebugVariableTextViewer.py	Mon Jun 03 00:30:55 2013 +0200
@@ -179,9 +179,6 @@
                                  ("release", self.OnReleaseButton),
                                  ("delete_graph", self.OnCloseButton)]:
             self.Buttons.append(GraphButton(0, 0, bitmap, callback))
-        
-        # Hide buttons until mouse enter Viewer
-        self.ShowButtons(False)
     
     def RefreshViewer(self):
         """
@@ -192,12 +189,13 @@
         bitmap = wx.EmptyBitmap(width, height)
         dc = wx.BufferedDC(wx.ClientDC(self), bitmap)
         dc.Clear()
-        dc.BeginDrawing()
         
         # Get Graphics Context for DC, for anti-aliased and transparent
         # rendering
         gc = wx.GCDC(dc)
         
+        gc.BeginDrawing()
+        
         # Get first item
         item = self.ItemsDict.values()[0]