|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2004 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module implemting a dialog to show repository information. |
|
8 """ |
|
9 |
|
10 from PyQt5.QtWidgets import QDialog |
|
11 |
|
12 from .Ui_RepositoryInfoDialog import Ui_VcsRepositoryInfoDialog |
|
13 |
|
14 |
|
15 class VcsRepositoryInfoDialog(QDialog, Ui_VcsRepositoryInfoDialog): |
|
16 """ |
|
17 Class implemting a dialog to show repository information. |
|
18 """ |
|
19 def __init__(self, parent, info): |
|
20 """ |
|
21 Constructor |
|
22 |
|
23 @param parent reference to the parent widget (QWidget) |
|
24 @param info info data to show (string) |
|
25 """ |
|
26 super().__init__(parent) |
|
27 self.setupUi(self) |
|
28 self.infoBrowser.setHtml(info) |