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?
_______________________________________________
gnue-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnue-dev

Reply via email to