[Top][All Lists]

[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 (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">
      <sortfield name="item" ignorecase="Y"/>
      <sortfield name="combination_o__key" ignorecase="Y"/>     
    <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"/>
    <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:"/>

The full error:

Traceback (most recent call last):
   File "/usr/bin/gnue-forms", line 34, in <module> ()
   File "/var/lib/python-support/python2.5/gnue/forms/", line 197, in run
    instance.run_from_file(formfile, userParameters)
   File "/var/lib/python-support/python2.5/gnue/forms/", line 276, in run_from_file
    self.__run(form, parameters)
   File "/var/lib/python-support/python2.5/gnue/forms/", line 365, in __run
   File "/var/lib/python-support/python2.5/gnue/forms/", line 320, in initialize
   File "/var/lib/python-support/python2.5/gnue/common/definitions/", line 163, in phaseInit
    self._phaseInit (phase)
   File "/var/lib/python-support/python2.5/gnue/common/definitions/", line 335, in _phaseInit
    inits [phase] ()
   File "/var/lib/python-support/python2.5/gnue/forms/", line 385, in phase_3_init
   File "/var/lib/python-support/python2.5/gnue/forms/uidrivers/_base/", line 233, in buildForm
    self._gfObjToUIWidget [form].phaseInit ()
   File "/var/lib/python-support/python2.5/gnue/common/definitions/", line 163, in phaseInit
    self._phaseInit (phase)
   File "/var/lib/python-support/python2.5/gnue/common/definitions/", line 335, in _phaseInit
    inits [phase] ()
   File "/var/lib/python-support/python2.5/gnue/forms/uidrivers/_base/widgets/", line 179, in __primary_init
    widget = self.create_widget(self._creationEvent, spacer)
   File "/var/lib/python-support/python2.5/gnue/forms/uidrivers/_base/widgets/", line 210, in create_widget
    return self._create_widget_(event, spacer)
   File "/var/lib/python-support/python2.5/gnue/forms/uidrivers/gtk2/widgets/", line 64, in _create_widget_
    newWidget = self._create_widget (event, spacer)
   File "/var/lib/python-support/python2.5/gnue/forms/uidrivers/gtk2/widgets/form/", 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]