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 |
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 |
|
|
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 |
|
|