labelDialog.py 412 B

123456789101112131415
  1. from PyQt4.QtGui import *
  2. from PyQt4.QtCore import *
  3. from lib import newIcon
  4. from simpleLabelDialog import SimpleLabelDialog
  5. BB = QDialogButtonBox
  6. class LabelDialog(SimpleLabelDialog):
  7. def __init__(self, parent=None):
  8. super(LabelDialog, self).__init__(parent=parent)
  9. self.buttonBox.button(BB.Ok).setIcon(newIcon('done'))
  10. self.buttonBox.button(BB.Cancel).setIcon(newIcon('undo'))