From: Kevin A. <ka...@us...> - 2004-08-22 18:45:11
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21139/tools/resourceEditor/modules Modified Files: backgroundInfoDialog.py Log Message: added colorFromString to util.py added backgroundInfoDialog function wrapper Index: backgroundInfoDialog.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules/backgroundInfoDialog.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** backgroundInfoDialog.py 12 Aug 2004 19:14:23 -0000 1.13 --- backgroundInfoDialog.py 22 Aug 2004 18:44:54 -0000 1.14 *************** *** 5,9 **** """ ! from PythonCard import dialog, model import os --- 5,9 ---- """ ! from PythonCard import dialog, model, util import os *************** *** 60,61 **** --- 60,89 ---- self.components.fldIcon.text = filename + + def backgroundInfoDialog(parent, rsrc): + dlg = BackgroundInfoDialog(parent, rsrc) + result = dlg.showModal() + if result.accepted: + result.name = dlg.components.fldName.text + result.title = dlg.components.fldTitle.text + result.position = eval(dlg.components.fldPosition.text) + result.size = eval(dlg.components.fldSize.text) + result.statusBar = dlg.components.chkStatusBar.checked + result.foregroundColor = util.colorFromString(dlg.components.fldForegroundColor.text) + result.backgroundColor = util.colorFromString(dlg.components.fldBackgroundColor.text) + if dlg.components.fldImage.text != '': + result.image = dlg.components.fldImage.text + else: + result.image = None + result.tiled = dlg.components.chkTiled.checked + result.visible = dlg.components.chkVisible.checked + if dlg.components.chkResizeable.checked: + result.style = ['resizeable'] + else: + result.style = [] + if dlg.components.fldIcon.text != '': + result.icon = dlg.components.fldIcon.text + else: + result.icon = None + dlg.destroy() + return result |