eric6/UI/PythonDisViewer.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
child 8227
349308e84eeb
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
56 @param mode operation mode of the viewer 56 @param mode operation mode of the viewer
57 @type int 57 @type int
58 @param parent reference to the parent widget 58 @param parent reference to the parent widget
59 @type QWidget 59 @type QWidget
60 """ 60 """
61 super(PythonDisViewer, self).__init__(parent) 61 super().__init__(parent)
62 self.setupUi(self) 62 self.setupUi(self)
63 63
64 self.setWindowTitle(self.tr("Disassembly")) 64 self.setWindowTitle(self.tr("Disassembly"))
65 65
66 self.__vm = viewmanager 66 self.__vm = viewmanager
212 212
213 def show(self): 213 def show(self):
214 """ 214 """
215 Public slot to show the DIS viewer. 215 Public slot to show the DIS viewer.
216 """ 216 """
217 super(PythonDisViewer, self).show() 217 super().show()
218 218
219 if ( 219 if (
220 self.__mode == PythonDisViewerModes.SourceDisassemblyMode and 220 self.__mode == PythonDisViewerModes.SourceDisassemblyMode and
221 not self.__vmConnected 221 not self.__vmConnected
222 ): 222 ):
231 231
232 def hide(self): 232 def hide(self):
233 """ 233 """
234 Public slot to hide the DIS viewer. 234 Public slot to hide the DIS viewer.
235 """ 235 """
236 super(PythonDisViewer, self).hide() 236 super().hide()
237 237
238 if self.__editor: 238 if self.__editor:
239 self.__editor.clearAllHighlights() 239 self.__editor.clearAllHighlights()
240 240
241 if ( 241 if (

eric ide

mercurial