79 def __initActions(self): |
79 def __initActions(self): |
80 """ |
80 """ |
81 Private method to initialize the actions. |
81 Private method to initialize the actions. |
82 """ |
82 """ |
83 # 1. action for 'setup.py' creation |
83 # 1. action for 'setup.py' creation |
|
84 # Note: Use of setup.py is deprecated. |
84 act = EricAction( |
85 act = EricAction( |
85 self.tr("setup.py Wizard"), |
86 self.tr("setup.py Wizard (deprecated)"), |
86 self.tr("setup.py Wizard..."), |
87 self.tr("setup.py Wizard (deprecated)..."), |
87 0, |
88 0, |
88 0, |
89 0, |
89 self, |
90 self, |
90 "wizards_setup_py", |
91 "wizards_setup_py", |
91 ) |
92 ) |
92 act.setStatusTip(self.tr("setup.py Wizard")) |
93 act.setStatusTip(self.tr("setup.py Wizard (deprecated)")) |
93 act.setWhatsThis( |
94 act.setWhatsThis( |
94 self.tr( |
95 self.tr( |
95 """<b>setup.py Wizard</b>""" |
96 """<b>setup.py Wizard (deprecated)</b>""" |
96 """<p>This wizard opens a dialog for entering all the parameters""" |
97 """<p>This wizard opens a dialog for entering all the parameters""" |
97 """ needed to create the basic contents of a setup.py file. The""" |
98 """ needed to create the basic contents of a setup.py file. The""" |
98 """ generated code is inserted at the current cursor position.""" |
99 """ generated code is inserted at the current cursor position.""" |
99 """</p>""" |
100 """</p><p><b>Note:</b> The use of setup.py is deprecated. Use""" |
|
101 """ <b>pyproject.toml</b> instead.""" |
100 ) |
102 ) |
101 ) |
103 ) |
102 act.triggered.connect(functools.partial(self.__handle, "setup.py")) |
104 act.triggered.connect(functools.partial(self.__handle, "setup.py")) |
103 self.__actions.append(act) |
105 self.__actions.append(act) |
104 |
106 |
105 # 2. action for 'setup.cfg' creation |
107 # 2. action for 'setup.cfg' creation |
|
108 # Note: Use of setup.cfg is deprecated. |
106 act = EricAction( |
109 act = EricAction( |
107 self.tr("setup.cfg Wizard"), |
110 self.tr("setup.cfg Wizard (deprecated)"), |
108 self.tr("setup.cfg Wizard..."), |
111 self.tr("setup.cfg Wizard (deprecated)..."), |
109 0, |
112 0, |
110 0, |
113 0, |
111 self, |
114 self, |
112 "wizards_setup_cfg", |
115 "wizards_setup_cfg", |
113 ) |
116 ) |
114 act.setStatusTip(self.tr("setup.cfg Wizard")) |
117 act.setStatusTip(self.tr("setup.cfg Wizard (deprecated)")) |
115 act.setWhatsThis( |
118 act.setWhatsThis( |
116 self.tr( |
119 self.tr( |
117 """<b>setup.cfg Wizard</b>""" |
120 """<b>setup.cfg Wizard (deprecated)</b>""" |
118 """<p>This wizard opens a dialog for entering all the parameters""" |
121 """<p>This wizard opens a dialog for entering all the parameters""" |
119 """ needed to create the basic contents of a setup.cfg file. The""" |
122 """ needed to create the basic contents of a setup.cfg file. The""" |
120 """ generated code is inserted at the current cursor position.""" |
123 """ generated code is inserted at the current cursor position.""" |
121 """</p>""" |
124 """</p><p><b>Note:</b> The use of setup.cfg is deprecated. Use""" |
|
125 """ <b>pyproject.toml</b> instead.""" |
122 ) |
126 ) |
123 ) |
127 ) |
124 act.triggered.connect(functools.partial(self.__handle, "setup.cfg")) |
128 act.triggered.connect(functools.partial(self.__handle, "setup.cfg")) |
125 self.__actions.append(act) |
129 self.__actions.append(act) |
126 |
130 |