Plugins/VcsPlugins/vcsMercurial/PurgeExtension/HgPurgeListDialog.py

changeset 1071
ac0f74c0b870
child 1131
7781e396c903
equal deleted inserted replaced
1070:0f4e3c9670f5 1071:ac0f74c0b870
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2011 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog to list all files not tracked by Mercurial.
8 """
9
10 from PyQt4.QtGui import QDialog
11
12 from .Ui_HgPurgeListDialog import Ui_HgPurgeListDialog
13
14
15 class HgPurgeListDialog(QDialog, Ui_HgPurgeListDialog):
16 """
17 Class implementing a dialog to list all files not tracked by Mercurial.
18 """
19 def __init__(self, entries, parent=None):
20 """
21 Constructor
22
23 @param entries list of entries to be shown (list of strings)
24 @param parent reference to the parent widget (QWidget)
25 """
26 QDialog.__init__(self, parent)
27 self.setupUi(self)
28
29 self.purgeList.addItems(sorted(entries))

eric ide

mercurial