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