eric6/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py

changeset 7533
88261c96484b
parent 7360
9190402e4505
child 7759
51aa6c6b66f7
equal deleted inserted replaced
7532:1358e9d67a1c 7533:88261c96484b
42 """ 42 """
43 super(PyRegExpWizardWidget, self).__init__(parent) 43 super(PyRegExpWizardWidget, self).__init__(parent)
44 self.setupUi(self) 44 self.setupUi(self)
45 45
46 # initialize icons of the tool buttons 46 # initialize icons of the tool buttons
47 self.commentButton.setIcon(UI.PixmapCache.getIcon("comment.png")) 47 self.commentButton.setIcon(UI.PixmapCache.getIcon("comment"))
48 self.charButton.setIcon(UI.PixmapCache.getIcon("characters.png")) 48 self.charButton.setIcon(UI.PixmapCache.getIcon("characters"))
49 self.anycharButton.setIcon(UI.PixmapCache.getIcon("anychar.png")) 49 self.anycharButton.setIcon(UI.PixmapCache.getIcon("anychar"))
50 self.repeatButton.setIcon(UI.PixmapCache.getIcon("repeat.png")) 50 self.repeatButton.setIcon(UI.PixmapCache.getIcon("repeat"))
51 self.nonGroupButton.setIcon(UI.PixmapCache.getIcon("nongroup.png")) 51 self.nonGroupButton.setIcon(UI.PixmapCache.getIcon("nongroup"))
52 self.groupButton.setIcon(UI.PixmapCache.getIcon("group.png")) 52 self.groupButton.setIcon(UI.PixmapCache.getIcon("group"))
53 self.namedGroupButton.setIcon(UI.PixmapCache.getIcon("namedgroup.png")) 53 self.namedGroupButton.setIcon(UI.PixmapCache.getIcon("namedgroup"))
54 self.namedReferenceButton.setIcon( 54 self.namedReferenceButton.setIcon(
55 UI.PixmapCache.getIcon("namedreference.png")) 55 UI.PixmapCache.getIcon("namedreference"))
56 self.altnButton.setIcon(UI.PixmapCache.getIcon("altn.png")) 56 self.altnButton.setIcon(UI.PixmapCache.getIcon("altn"))
57 self.beglineButton.setIcon(UI.PixmapCache.getIcon("begline.png")) 57 self.beglineButton.setIcon(UI.PixmapCache.getIcon("begline"))
58 self.endlineButton.setIcon(UI.PixmapCache.getIcon("endline.png")) 58 self.endlineButton.setIcon(UI.PixmapCache.getIcon("endline"))
59 self.wordboundButton.setIcon( 59 self.wordboundButton.setIcon(
60 UI.PixmapCache.getIcon("wordboundary.png")) 60 UI.PixmapCache.getIcon("wordboundary"))
61 self.nonwordboundButton.setIcon( 61 self.nonwordboundButton.setIcon(
62 UI.PixmapCache.getIcon("nonwordboundary.png")) 62 UI.PixmapCache.getIcon("nonwordboundary"))
63 self.poslookaheadButton.setIcon( 63 self.poslookaheadButton.setIcon(
64 UI.PixmapCache.getIcon("poslookahead.png")) 64 UI.PixmapCache.getIcon("poslookahead"))
65 self.neglookaheadButton.setIcon( 65 self.neglookaheadButton.setIcon(
66 UI.PixmapCache.getIcon("neglookahead.png")) 66 UI.PixmapCache.getIcon("neglookahead"))
67 self.poslookbehindButton.setIcon( 67 self.poslookbehindButton.setIcon(
68 UI.PixmapCache.getIcon("poslookbehind.png")) 68 UI.PixmapCache.getIcon("poslookbehind"))
69 self.neglookbehindButton.setIcon( 69 self.neglookbehindButton.setIcon(
70 UI.PixmapCache.getIcon("neglookbehind.png")) 70 UI.PixmapCache.getIcon("neglookbehind"))
71 self.undoButton.setIcon(UI.PixmapCache.getIcon("editUndo.png")) 71 self.undoButton.setIcon(UI.PixmapCache.getIcon("editUndo"))
72 self.redoButton.setIcon(UI.PixmapCache.getIcon("editRedo.png")) 72 self.redoButton.setIcon(UI.PixmapCache.getIcon("editRedo"))
73 73
74 self.namedGroups = re.compile(r"""\(?P<([^>]+)>""").findall 74 self.namedGroups = re.compile(r"""\(?P<([^>]+)>""").findall
75 75
76 self.saveButton = self.buttonBox.addButton( 76 self.saveButton = self.buttonBox.addButton(
77 self.tr("Save"), QDialogButtonBox.ActionRole) 77 self.tr("Save"), QDialogButtonBox.ActionRole)

eric ide

mercurial