Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7715/tools/resourceEditor/modules
Modified Files:
resourceOutput.py
Log Message:
fixed default alignment output for fields
Index: resourceOutput.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules/resourceOutput.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** resourceOutput.py 20 Apr 2004 14:39:28 -0000 1.23
--- resourceOutput.py 28 Apr 2004 02:58:00 -0000 1.24
***************
*** 71,75 ****
continue
! if key == 'alignment' and aWidget.__class__.__name__ == 'StaticText' and value == 'left':
continue
if key == 'border' and aWidget.__class__.__name__ in txtWidgets and value == '3d':
--- 71,77 ----
continue
! if key == 'alignment' and \
! aWidget.__class__.__name__ in ['StaticText', 'PasswordField', 'TextField', 'TextArea'] \
! and value == 'left':
continue
if key == 'border' and aWidget.__class__.__name__ in txtWidgets and value == '3d':
***************
*** 96,100 ****
dStr += """ %s:%s, \n""" % (repr(key), repr(value))
else:
! if (key in ['editable', 'enabled', 'visible'] and value == 1) or (key in ['checked', 'default'] and value == 0):
# don't include default values
pass
--- 98,103 ----
dStr += """ %s:%s, \n""" % (repr(key), repr(value))
else:
! if (key in ['editable', 'enabled', 'visible'] and value == True) or \
! (key in ['checked', 'default'] and value == False):
# don't include default values
pass
|