/[papo]/gnue/designer/src/forms/wizards/AddPage.py
ViewVC logotype

Diff of /gnue/designer/src/forms/wizards/AddPage.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by styxman, Fri Nov 8 16:46:03 2002 UTC revision 1.3.4.1 by anthonyl, Tue Mar 4 22:11:40 2003 UTC
# Line 16  Line 16 
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
# Line 115  class AddPageWizard(FormTemplate): Line 115  class AddPageWizard(FormTemplate):
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    
# Line 140  TemplateInformation = { Line 140  TemplateInformation = {
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    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.4.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26