Following on from my previous postings I have built two forms with 
'Class Designer' - using the some folders.

1 - imadata.cdxml - view database of images (actually data relating to 
images - date,time,gps data etc) which select photos taken at a certain 
area.

2 - imapim.cdxml - view worldwide maps and save longitude/latitude of 
area of interest.

I now wish to combine these using 'imapim' to define the area for phot 
selection.

created a new new 'main.py' which is the imdata program with the
myForm = ... line added

  #!/usr/bin/env python
  # -*- coding: utf-8 -*-

  import dabo
  dabo.ui.loadUI("wx")
  app = dabo.dApp()
  app.MainFormClass = "imdata.cdxml"

  myForm = dabo.ui.createForm("ui/imapim.cdxml")

  app.start()

If I run this I get an error :

wx._core.PyNoAppError: The wx.App object must be created first!


> File "/home/iain/workspace/dabtest/imdata/main.py", line 16, in <module>
>   myForm = dabo.ui.createForm("ui/imapim.cdxml")
> File 
> "/usr/local/lib/python2.6/dist-packages/Dabo-0.9.3-py2.6.egg/dabo/ui/uiwx/__init__.py",
>  line 1227, in createForm
>   frm = cls(*args, **kwargs)
> File "/tmp/tmpr70sVX.py", line 10, in __init__
>   super(dForm_80776, self).__init__(parent=parent, 
> attProperties=attProperties, *args, **kwargs)
> File 
> "/usr/local/lib/python2.6/dist-packages/Dabo-0.9.3-py2.6.egg/dabo/ui/uiwx/dForm.py",
>  line 928, in __init__
>   BaseForm.__init__(self, preClass, parent, properties, attProperties, *args, 
> **kwargs)
> File 
> "/usr/local/lib/python2.6/dist-packages/Dabo-0.9.3-py2.6.egg/dabo/ui/uiwx/dForm.py",
>  line 45, in __init__
>   fm.dFormMixin.__init__(self, preClass, parent, properties, attProperties, 
> *args, **kwargs)
> File 
> "/usr/local/lib/python2.6/dist-packages/Dabo-0.9.3-py2.6.egg/dabo/ui/uiwx/dFormMixin.py",
>  line 75, in __init__
>   attProperties, *args, **kwargs)
> File 
> "/usr/local/lib/python2.6/dist-packages/Dabo-0.9.3-py2.6.egg/dabo/ui/uiwx/dPemMixin.py",
>  line 58, in __init__
>   pre = preClass()
> File "/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_windows.py", 
> line 610, in PreFrame
>   val = _windows_.new_PreFrame(*args, **kwargs)


I don't really know where to start looking. Is there a thread in the 
archives (or other document/screencast that I should be consulting ?

Sorry if this is elementary stuff but I want to make this work.

Iain
_______________________________________________
Post Messages to: [email protected]
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/[email protected]

Reply via email to