gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUe] Form on Ubuntu won't work on gtk2


From: Kenneth Reiszner
Subject: [GNUe] Form on Ubuntu won't work on gtk2
Date: Sat, 10 May 2008 16:18:40 -0500
User-agent: Thunderbird 2.0.0.14 (X11/20080505)

I just installed gnue on ubuntu8.04 and attempted to access my database with a form that is similar to the first example given in the Forms Developer's Guide. It runs in curses fine but in gtk2 it gives AttributeError: 'GFLayout' object has no attribute 'Char__width'. Is this a dependency problem or is the Developers Guide in error or am  I just missing something? The full error and my form definition are given below.

This form accesses the info. in one of many tables in a postgresql database that I have maintained over the years with GNUE. The forms were developed with designer and I am going to either  write new forms from scratch without designer or alter the current forms so that they can work with present GNUE. There is no relational stuff in the database at this time but I would like to extend it to invoicing, etc.

Any help would be appreciated.

Kenneth D. Reiszner
P.O. Box 709,    41 hwy 167 S. (UPS, etc)
Lecompte, LA 71346

Ph.No.: 318-443-0426

 Form definition:
<?xml version="1.0"?>
<form title="Keys2">
  <datasource name="dts_keys" connection="real" table="keys2">
    <sortorder>
      <sortfield name="item" ignorecase="Y"/>
      <sortfield name="combination_o__key" ignorecase="Y"/>     
    </sortorder>
  </datasource>
  <logic>
    <block name="blk_keys" datasource="dts_keys">
      <field name="item" field="item" datatype="text" length="50"/>
      <field name="key" field="combination_o__key" datatype="text" length="255"/>
    </block>
  </logic>
  <layout>
    <page name="pg_keys" caption="Keys">
      <vbox name="box" block="blk_keys">
        <entry name="item" field="item" label="Item:"/>
    <entry name="key" field="key" label="Key:"/>
      </vbox>
    </page>
  </layout>
</form>


The full error:

Traceback (most recent call last):
   File "/usr/bin/gnue-forms", line 34, in <module>
    client.run ()
   File "/var/lib/python-support/python2.5/gnue/forms/GFClient.py", line 197, in run
    instance.run_from_file(formfile, userParameters)
   File "/var/lib/python-support/python2.5/gnue/forms/GFInstance.py", line 276, in run_from_file
    self.__run(form, parameters)
   File "/var/lib/python-support/python2.5/gnue/forms/GFInstance.py", line 365, in __run
    form.initialize(self.__default_form)
   File "/var/lib/python-support/python2.5/gnue/forms/GFForm.py", line 320, in initialize
    self.phaseInit()
   File "/var/lib/python-support/python2.5/gnue/common/definitions/GObjects.py", line 163, in phaseInit
    self._phaseInit (phase)
   File "/var/lib/python-support/python2.5/gnue/common/definitions/GObjects.py", line 335, in _phaseInit
    inits [phase] ()
   File "/var/lib/python-support/python2.5/gnue/forms/GFForm.py", line 385, in phase_3_init
    self._instance._uiinstance.buildForm(self, self.name)
   File "/var/lib/python-support/python2.5/gnue/forms/uidrivers/_base/UIdriver.py", line 233, in buildForm
    self._gfObjToUIWidget [form].phaseInit ()
   File "/var/lib/python-support/python2.5/gnue/common/definitions/GObjects.py", line 163, in phaseInit
    self._phaseInit (phase)
   File "/var/lib/python-support/python2.5/gnue/common/definitions/GObjects.py", line 335, in _phaseInit
    inits [phase] ()
   File "/var/lib/python-support/python2.5/gnue/forms/uidrivers/_base/widgets/_base.py", line 179, in __primary_init
    widget = self.create_widget(self._creationEvent, spacer)
   File "/var/lib/python-support/python2.5/gnue/forms/uidrivers/_base/widgets/_base.py", line 210, in create_widget
    return self._create_widget_(event, spacer)
   File "/var/lib/python-support/python2.5/gnue/forms/uidrivers/gtk2/widgets/_base.py", line 64, in _create_widget_
    newWidget = self._create_widget (event, spacer)
   File "/var/lib/python-support/python2.5/gnue/forms/uidrivers/gtk2/widgets/form/widget.py", line 78, in _create_widget
    formWidth  = int (self._form._layout.Char__width)
 AttributeError: 'GFLayout' object has no attribute 'Char__width'


reply via email to

[Prev in Thread] Current Thread [Next in Thread]