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/AddBox.py |
# forms/wizards/AddBox.py |
62 |
|
|
63 |
# Create element |
# Create element |
64 |
self.AddElement( 'box', |
self.AddElement( 'box', |
65 |
self.current.findParentOfType('GFPage'), |
self.current['page'], |
66 |
{ 'name': 'Box_1', |
{ 'name': self.GetUniqueName('Box1'), |
67 |
'label': 'I am a Box', |
'label': 'I am a Box', |
68 |
'x': self.x, |
'Char:x': self.x, |
69 |
'y': self.y, |
'Char:y': self.y, |
70 |
'width': self.width > 2 and self.width or 10, |
'Char:width': self.width > 2 and self.width or 10, |
71 |
'height': self.height > 2 and self.height or 4}) |
'Char:height': self.height > 2 and self.height or 4}) |
72 |
|
|
73 |
return 1 |
return 1 |
74 |
|
|
86 |
'Version' : VERSION, |
'Version' : VERSION, |
87 |
'Author' : 'The GNUe Designer Team', |
'Author' : 'The GNUe Designer Team', |
88 |
'Behavior': TEMPLATE, |
'Behavior': TEMPLATE, |
89 |
'Location' : 'Tools|Insert|Box' |
'Location' : 'Edit|Insert|Box' |
90 |
} |
} |
91 |
|
|