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

Diff of /gnue/designer/src/forms/wizards/AddLabel.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/AddLabel.py  # forms/wizards/AddLabel.py
# Line 58  class AddLabelWizard(FormPrePositioningT Line 58  class AddLabelWizard(FormPrePositioningT
58    # We have all the data, so generate our widget.    # We have all the data, so generate our widget.
59    #    #
60    def Finalize(self):    def Finalize(self):
61      
62        page = self.current['page']
63    
64      # Create element      # Create element
65      self.AddElement( 'label',      self.AddElement( 'label',
66                       self.current.findParentOfType('GFPage'),                       page,
67                       { 'name': 'Label_1',                       { 'name': self.GetUniqueName('Label1',page),
68                         'text': 'Label:',                         'text': 'Label:',
69                         'x': self.x,                         'Char:x': self.x,
70                         'y': self.y,                         'Char:y': self.y,
71                         'width': self.width or 10,                         'Char:width': self.width or 10,
72                         'height': self.height or 1})                         'Char:height': self.height or 1})
73    
74      return 1      return 1
75    
# Line 85  TemplateInformation = { Line 87  TemplateInformation = {
87      'Version' : VERSION,      'Version' : VERSION,
88      'Author' : 'The GNUe Designer Team',      'Author' : 'The GNUe Designer Team',
89      'Behavior': TEMPLATE,      'Behavior': TEMPLATE,
90      'Location' : 'Tools|Insert|Label'      'Location' : 'Edit|Insert|Label'
91  }  }
92    

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