8217:385f60c94548 | 8218:7c09585bd960 |
---|---|
29 Constructor | 29 Constructor |
30 | 30 |
31 @param ui reference to the main window (UserInterface) | 31 @param ui reference to the main window (UserInterface) |
32 @param parent reference to the parent widget (QWidget) | 32 @param parent reference to the parent widget (QWidget) |
33 """ | 33 """ |
34 super(LogViewer, self).__init__(parent) | 34 super().__init__(parent) |
35 | 35 |
36 self.setWindowIcon(UI.PixmapCache.getIcon("eric")) | 36 self.setWindowIcon(UI.PixmapCache.getIcon("eric")) |
37 | 37 |
38 self.__ui = ui | 38 self.__ui = ui |
39 | 39 |
102 """ | 102 """ |
103 Constructor | 103 Constructor |
104 | 104 |
105 @param parent reference to the parent widget (QWidget) | 105 @param parent reference to the parent widget (QWidget) |
106 """ | 106 """ |
107 super(LogViewerEdit, self).__init__(parent) | 107 super().__init__(parent) |
108 self.setAcceptRichText(False) | 108 self.setAcceptRichText(False) |
109 self.setLineWrapMode(QTextEdit.LineWrapMode.NoWrap) | 109 self.setLineWrapMode(QTextEdit.LineWrapMode.NoWrap) |
110 self.setReadOnly(True) | 110 self.setReadOnly(True) |
111 | 111 |
112 self.__mainWindow = parent | 112 self.__mainWindow = parent |