Hello,

the next crash I don't understand:

Database is sqlite, content of one table should be shown in dGrid, no 
editing. This time I don't try to use "Add controls from Data 
Environment", but still use the ClassDesigner for the main form. This 
works, application runs (nothing in the form but the grid).

Next step: creating a panel with the ClassDesigner, putting my grid on 
this panel and putting the panel into a hand coded main form, like this:

class TestMF_PN(dabo.ui.dForm):
        def afterInit(self):
                self.Sizer = dabo.ui.dSizer("v")
                pnClass = dabo.ui.createClass("TestPanel_1.cdxml")
                print pnClass
                mainPanel = pnClass(self)
                self.Sizer.append1x(mainPanel)
                self.layout()
                

If I try to run the application now, I get this:

s...@gespenst-xubuntu:~/bin/dabosib/testcd_2$ ./main.py
<class 'dPanel_53832'>
Traceback (most recent call last):
   File "./main.py", line 14, in <module>
     app.start()
   File "/home/sib/src/dabo-trunk/dabo/dApp.py", line 390, in start
     self.setup()
   File "/home/sib/src/dabo-trunk/dabo/dApp.py", line 345, in setup
     self.initUIApp()
   File "/home/sib/src/dabo-trunk/dabo/dApp.py", line 382, in initUIApp
     self.uiApp.setup()
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/uiApp.py", line 417, in setup
     frm = self.dApp.MainForm = mfc()
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dForm.py", line 931, in 
__init__
     BaseForm.__init__(self, preClass, parent, properties, 
attProperties, *args, **kwargs)
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dForm.py", line 45, in 
__init__
     fm.dFormMixin.__init__(self, preClass, parent, properties, 
attProperties, *args, **kwargs)
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dFormMixin.py", line 75, 
in __init__
     attProperties, *args, **kwargs)
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dPemMixin.py", line 192, 
in __init__
     self._afterInit()
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dForm.py", line 72, in 
_afterInit
     super(BaseForm, self)._afterInit()
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dFormMixin.py", line 129, 
in _afterInit
     super(dFormMixin, self)._afterInit()
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dPemMixin.py", line 329, 
in _afterInit
     self.afterInit()
   File "/home/sib/bin/dabosib/testcd_2/ui/TestMF_PN.py", line 11, in 
afterInit
     mainPanel = pnClass(self)
   File "/tmp/tmph2ROuj.py", line 41, in __init__
     col = dabo.ui.dColumn(obj, attProperties={u'HeaderFontItalic': 
u'False', u'FontUnderline': u'False', u'Width': u'48', u'FontFace': 
u'sans', u'HeaderBackColor': u'None', u'FontBold': u'False', 
u'HeaderVerticalAlignment': u'None', u'Editable': u'False', 
u'HeaderFontBold': u'True', u'ListEditorChoices': u'[]', u'FontItalic': 
u'False', u'Expand': u'False', u'DataField': u'did', u'Sortable': 
u'True', u'HeaderFontFace': u'sans', u'Caption': u'ID', u'FontSize': 
u'10', u'Order': u'0', u'HeaderForeColor': u'None', u'Searchable': 
u'True', u'HeaderFontUnderline': u'False', u'HeaderHorizontalAlignment': 
u'None', u'Visible': u'True', u'HorizontalAlignment': u'Left 
(Automatic)', u'HeaderFontSize': u'10', u'VerticalAlignment': u'Top'})
   File "/home/sib/src/dabo-trunk/dabo/ui/uiwx/dGrid.py", line 458, in 
__init__
     super(dColumn, self).__init__(properties, attProperties, *args, 
**kwargs)
   File "/home/sib/src/dabo-trunk/dabo/dObject.py", line 67, in __init__
     val = typ(val)
TypeError: cannot create 'NoneType' instances
s...@gespenst-xubuntu:~/bin/dabosib/testcd_2$

If the panel I put into the main form doesn't contain a dGrid but 
labels, textboxes and a dSpinner instead, then everything works as expected.

Version information:

Platform: GTK
Python Version: 2.6.6 on linux2
Dabo Version: Version 0.9.3; Revision 6310M
UI Version: 2.8.11.0 on wxGTK (gtk2)

What information should I add, how can I try to get to the bottom of this?

Mystified,
Sibylle
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/4d2dc224.4010...@t-online.de

Reply via email to