equal
deleted
inserted
replaced
104 """ |
104 """ |
105 Mark if button is active in Graphic Viewer |
105 Mark if button is active in Graphic Viewer |
106 @param enable: True if button is active in Graphic Viewer |
106 @param enable: True if button is active in Graphic Viewer |
107 (default True) |
107 (default True) |
108 """ |
108 """ |
109 self.Enabled = True |
109 self.Enabled = enable |
110 |
110 |
111 def Disable(self): |
111 def Disable(self): |
112 """ |
112 """ |
113 Deactivate button in Graphic Viewer |
113 Deactivate button in Graphic Viewer |
114 """ |
114 """ |
141 def ProcessCallback(self): |
141 def ProcessCallback(self): |
142 """ |
142 """ |
143 Call callback function if defined |
143 Call callback function if defined |
144 """ |
144 """ |
145 if self.Callback is not None: |
145 if self.Callback is not None: |
146 wx.CallAfter(self.Callback) |
146 self.Callback() |
147 |
147 |
148 def Draw(self, dc): |
148 def Draw(self, dc): |
149 """ |
149 """ |
150 Draw button in Graphic Viewer |
150 Draw button in Graphic Viewer |
151 @param dc: wx.DC object corresponding to Graphic Viewer device context |
151 @param dc: wx.DC object corresponding to Graphic Viewer device context |