16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
# Copyright 2001-2002 Free Software Foundation |
# Copyright 2001-2003 Free Software Foundation |
20 |
# |
# |
21 |
# FILE: |
# FILE: |
22 |
# forms/wizards/AddPage.py |
# forms/wizards/AddPage.py |
115 |
def Finalize(self): |
def Finalize(self): |
116 |
|
|
117 |
|
|
118 |
attrs = {'name': self.variables['name'] or 'Page_1'} |
attrs = {'name': self.GetUniqueName(self.variables['name'] or 'Page1')} |
119 |
|
|
120 |
try: |
try: |
121 |
attrs['caption'] = self.variables['caption'] or 'New Tab' |
attrs['caption'] = self.variables['caption'] or 'New Tab' |
122 |
except KeyError: |
except KeyError: |
123 |
pass |
pass |
124 |
|
|
125 |
page = self.AddElement('page', self.form, attrs) |
page = self.AddElement('page', self.current['layout'], attrs) |
126 |
|
|
127 |
return 1 |
return 1 |
128 |
|
|
140 |
'Version' : VERSION, |
'Version' : VERSION, |
141 |
'Author' : 'The GNUe Designer Team', |
'Author' : 'The GNUe Designer Team', |
142 |
'Behavior': WIZARD, |
'Behavior': WIZARD, |
143 |
'Location' : 'Tools|Insert|Blank Page' |
'Location' : 'Edit|Insert|Blank Page' |
144 |
} |
} |
145 |
|
|