Errors with gnue-designer
Kishan Bhat <[email protected]> Tue, 15 Feb 2011 20:03:18 +0530
| Newsgroups | gmane.comp.gnu.enterprise.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============2082777801==
Content-Type: multipart/alternative; boundary=0015174734b6a7c360049c530b34
--0015174734b6a7c360049c530b34
Content-Type: text/plain; charset=ISO-8859-1
I was trying to launch gnue-designer successfully and I made some progress
with modifications to:
// "<bzr branch>/tools/designer/src/app/designer.py":
line #35, Change from wx26 to wx
line #49, from xml.sax import saxlib => from xml.sax import *
// <bzr branch>/tools/designer/src/forms/Debugger.py:
line #33, # Change from wx26 to wx
// <bzr branch>/tools/designer/src/forms/LayoutEditor/LayoutEditor.py
line #36, # Change from wx26 to wx
// <bzr branch>/tools/designer/src/ui/wx/Base.py
line #69, # Change from wx26 to wx
Someone please commit these changes to designer src.
"<bzr branch>/tools/designer/src/app/designer.py" to add inside init():
from gnue.designer.ui.wx.startup import Startup
self.startup = Startup()
// <bzr branch>/tools/designer/src/base/document.py
from gnue.designer.ui.wx.startup import Startup
// and look for def init() in "# Private functions" this same file, to add:
self.startup = Startup() // approx line #448
But, I still got some error with wx.App, so I temporarily commented out
"gStartupStatus" in both /tools/designer/src/app/designer.py and
tools/designer/src/base/document.py
Then on launching:
gnue-designer --n forms ../sample/forms/customers.gfd
Traceback (most recent call last):
File "/usr/local/bin/gnue-designer", line 42, in <module>
designer.run()
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py", line
119, in run
self.ui.run()
File "/usr/local/lib/python2.6/dist-packages/gnue/designer/ui/wx/Base.py",
line 73, in run
self.app.init()
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py", line
138, in init
self.load(arg)
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py", line
259, in load
buffer=file)
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py", line
271, in newDocument
c = module(self, *args, **parms)
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/base/document.py",
line 495, in __init__
self.rootObject.walk(self.__inventory)
File
"/usr/local/lib/python2.6/dist-packages/gnue/common/definitions/GObjects.py",
line 259, in walk
child.walk (function, *args, **parms)
File
"/usr/local/lib/python2.6/dist-packages/gnue/common/definitions/GObjects.py",
line 259, in walk
child.walk (function, *args, **parms)
File
"/usr/local/lib/python2.6/dist-packages/gnue/common/definitions/GObjects.py",
line 256, in walk
function (self, *args, **parms)
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/base/document.py",
line 661, in __inventory
*self._editorMapping[object._type][1:])
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/ui/wx/Instance.py",
line 155, in createEditor
tool = baseclass(object, self.document, self.editNotebook)
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/base/EditorBase.py",
line 56, in __init__
self.init(object)
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/forms/PagePainter/PagePainter.py",
line 101, in init
self.object.walk(self.inventory)
File
"/usr/local/lib/python2.6/dist-packages/gnue/common/definitions/GObjects.py",
line 256, in walk
function (self, *args, **parms)
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/forms/PagePainter/PagePainter.py",
line 122, in inventory
widget = cls(object, canvas)
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/ui/wx/uihelpers/doccanvas/widget.py",
line 67, in __init__
self.recalc_metrics()
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/ui/wx/uihelpers/doccanvas/widget.py",
line 98, in recalc_metrics
self.calc_metrics()
File
"/usr/local/lib/python2.6/dist-packages/gnue/designer/forms/PagePainter/skins/default.py",
line 82, in calc_metrics
width = object['Char:width'] + 1
File
"/usr/local/lib/python2.6/dist-packages/gnue/common/definitions/GObjects.py",
line 91, in __getitem__
return self.__dict__ [key.replace (':', '__')]
KeyError: 'Char__width'
I've verified that in designer/forms/PagePainter/skins/default.py", line 82,
in calc_metrics:
width = object['Char:width'] + 1
height = object['Char:height'] + 1
Both object['Char:width'] and object['Char:height'] don't have anything in
it.
Can anyone help please?
--0015174734b6a7c360049c530b34
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I was trying to launch gnue-designer successfully and I made some progress =
with modifications to:<br><br>// "<bzr branch>/tools/designer/sr=
c/app/designer.py":<br>line #35, Change from wx26 to wx<br>line #49, f=
rom xml.sax import saxlib =3D> from xml.sax import *<br>
<br>// <bzr branch>/tools/designer/src/forms/Debugger.py:<br>line #33=
, # Change from wx26 to wx<br>// <bzr branch>/tools/designer/src/form=
s/LayoutEditor/LayoutEditor.py<br>line #36, # Change from wx26 to wx<br>
// <bzr branch>/tools/designer/src/ui/wx/Base.py<br>line #69, # Chang=
e from wx26 to wx<br><br>Someone please commit these changes to designer sr=
c.<br><br>"<bzr branch>/tools/designer/src/app/designer.py"=
to add inside init():<br>
from gnue.designer.ui.wx.startup import Startup<br>self.startup =3D Startup=
()<br>
// <bzr branch>/tools/designer/src/base/document.py<br>
from gnue.designer.ui.wx.startup import Startup<br>
// and look for def init() in "# Private functions" this same fil=
e, to add:<br>
self.startup =3D Startup() // approx line #448<br>But, I still got some err=
or with wx.App, so I temporarily commented out "gStartupStatus" i=
n both /tools/designer/src/app/designer.py and tools/designer/src/base/docu=
ment.py<br>
<br>Then on launching:<br>gnue-designer --n forms ../sample/forms/customers=
.gfd<br><br>Traceback (most recent call last):<br>=A0 File "/usr/local=
/bin/gnue-designer", line 42, in <module><br>=A0=A0=A0 designer.=
run()<br>
=A0 File "/usr/local/lib/python2.6/dist-packages/gnue/designer/app/des=
igner.py", line 119, in run<br>=A0=A0=A0 self.ui.run()<br>=A0 File &qu=
ot;/usr/local/lib/python2.6/dist-packages/gnue/designer/ui/wx/Base.py"=
, line 73, in run<br>
=A0=A0=A0 self.app.init()<br>=A0 File "/usr/local/lib/python2.6/dist-p=
ackages/gnue/designer/app/designer.py", line 138, in init<br>=A0=A0=A0=
self.load(arg)<br>=A0 File "/usr/local/lib/python2.6/dist-packages/gn=
ue/designer/app/designer.py", line 259, in load<br>
=A0=A0=A0 buffer=3Dfile)<br>=A0 File "/usr/local/lib/python2.6/dist-pa=
ckages/gnue/designer/app/designer.py", line 271, in newDocument<br>=A0=
=A0=A0 c =3D module(self, *args, **parms)<br>=A0 File "/usr/local/lib/=
python2.6/dist-packages/gnue/designer/base/document.py", line 495, in =
__init__<br>
=A0=A0=A0 self.rootObject.walk(self.__inventory)<br>=A0 File "/usr/loc=
al/lib/python2.6/dist-packages/gnue/common/definitions/GObjects.py", l=
ine 259, in walk<br>=A0=A0=A0 child.walk (function, *args, **parms)<br>=A0 =
File "/usr/local/lib/python2.6/dist-packages/gnue/common/definitions/G=
Objects.py", line 259, in walk<br>
=A0=A0=A0 child.walk (function, *args, **parms)<br>=A0 File "/usr/loca=
l/lib/python2.6/dist-packages/gnue/common/definitions/GObjects.py", li=
ne 256, in walk<br>=A0=A0=A0 function (self, *args, **parms)<br>=A0 File &q=
uot;/usr/local/lib/python2.6/dist-packages/gnue/designer/base/document.py&q=
uot;, line 661, in __inventory<br>
=A0=A0=A0 *self._editorMapping[object._type][1:])<br>=A0 File "/usr/lo=
cal/lib/python2.6/dist-packages/gnue/designer/ui/wx/Instance.py", line=
155, in createEditor<br>=A0=A0=A0 tool =3D baseclass(object, self.document=
, self.editNotebook)<br>
=A0 File "/usr/local/lib/python2.6/dist-packages/gnue/designer/base/Ed=
itorBase.py", line 56, in __init__<br>=A0=A0=A0 self.init(object)<br>=
=A0 File "/usr/local/lib/python2.6/dist-packages/gnue/designer/forms/P=
agePainter/PagePainter.py", line 101, in init<br>
=A0=A0=A0 self.object.walk(self.inventory)<br>=A0 File "/usr/local/lib=
/python2.6/dist-packages/gnue/common/definitions/GObjects.py", line 25=
6, in walk<br>=A0=A0=A0 function (self, *args, **parms)<br>=A0 File "/=
usr/local/lib/python2.6/dist-packages/gnue/designer/forms/PagePainter/PageP=
ainter.py", line 122, in inventory<br>
=A0=A0=A0 widget =3D cls(object, canvas)<br>=A0 File "/usr/local/lib/p=
ython2.6/dist-packages/gnue/designer/ui/wx/uihelpers/doccanvas/widget.py&qu=
ot;, line 67, in __init__<br>=A0=A0=A0 self.recalc_metrics()<br>=A0 File &q=
uot;/usr/local/lib/python2.6/dist-packages/gnue/designer/ui/wx/uihelpers/do=
ccanvas/widget.py", line 98, in recalc_metrics<br>
=A0=A0=A0 self.calc_metrics()<br>=A0 File "/usr/local/lib/python2.6/di=
st-packages/gnue/designer/forms/PagePainter/skins/default.py", line 82=
, in calc_metrics<br>=A0=A0=A0 width =3D object['Char:width'] + 1<b=
r>=A0 File "/usr/local/lib/python2.6/dist-packages/gnue/common/definit=
ions/GObjects.py", line 91, in __getitem__<br>
=A0=A0=A0 return self.__dict__ [key.replace (':', '__')]<br=
>KeyError: 'Char__width'<br><br>I've verified that in designer/=
forms/PagePainter/skins/default.py", line 82, in calc_metrics:<br>widt=
h =3D object['Char:width'] + 1<br>
height =3D object['Char:height'] + 1<br><br>Both object['Char:w=
idth'] and object['Char:height'] don't have anything in it.=
<br><br>Can anyone help please?<br>
--0015174734b6a7c360049c530b34--
--===============2082777801==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
gnue-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnue-dev
--===============2082777801==--